diff options
author | Sumit Bose <sbose@redhat.com> | 2011-01-03 18:29:22 +0100 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2011-01-05 08:06:17 -0500 |
commit | 0b586311f6a077deba5f43ca85a8536bfd203c66 (patch) | |
tree | e8e5337ca0f55c190d0c488136423dbd21dac91b | |
parent | 7daf6c9f7a0e583a1ba033bb858208b51358bf2f (diff) | |
download | sssd-0b586311f6a077deba5f43ca85a8536bfd203c66.tar.gz sssd-0b586311f6a077deba5f43ca85a8536bfd203c66.tar.xz sssd-0b586311f6a077deba5f43ca85a8536bfd203c66.zip |
Rename SRV_NOT_RESOLVED to SRV_RESOLVE_ERROR
-rw-r--r-- | src/providers/fail_over.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/providers/fail_over.c b/src/providers/fail_over.c index f7dfd5d41..331ccccd0 100644 --- a/src/providers/fail_over.c +++ b/src/providers/fail_over.c @@ -46,7 +46,7 @@ enum srv_lookup_status { SRV_NEUTRAL, /* We didn't try this SRV lookup yet */ SRV_RESOLVED, /* This SRV lookup is resolved */ - SRV_NOT_RESOLVED, /* Could not resolve this SRV lookup */ + SRV_RESOLVE_ERROR, /* Could not resolve this SRV lookup */ SRV_EXPIRED /* Need to refresh the SRV query */ }; @@ -168,7 +168,7 @@ str_srv_data_status(enum srv_lookup_status status) return "neutral"; case SRV_RESOLVED: return "resolved"; - case SRV_NOT_RESOLVED: + case SRV_RESOLVE_ERROR: return "not resolved"; case SRV_EXPIRED: return "expired"; @@ -273,7 +273,7 @@ get_srv_data_status(struct srv_data *data) data->srv_lookup_status = SRV_EXPIRED; data->last_status_change.tv_sec = 0; break; - case SRV_NOT_RESOLVED: + case SRV_RESOLVE_ERROR: data->srv_lookup_status = SRV_NEUTRAL; data->last_status_change.tv_sec = 0; break; @@ -979,7 +979,7 @@ resolve_srv_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, /* we know the DNS domain, just do the lookup */ resolve_srv_cont(req); break; - case SRV_NOT_RESOLVED: /* query could not be resolved but don't retry yet */ + case SRV_RESOLVE_ERROR: /* query could not be resolved but don't retry yet */ ret = EIO; goto done; case SRV_RESOLVED: /* The query is resolved and valid. Return. */ @@ -1122,7 +1122,7 @@ resolve_srv_done(struct tevent_req *subreq) fail: state->out = state->meta; - set_srv_data_status(state->meta->srv_data, SRV_NOT_RESOLVED); + set_srv_data_status(state->meta->srv_data, SRV_RESOLVE_ERROR); tevent_req_error(req, ret); } |