diff options
author | Lukas Slebodnik <lslebodn@redhat.com> | 2014-11-06 14:06:03 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2014-11-10 10:31:23 +0100 |
commit | 1a818ee8e01136166e7f2b37a441e7e779c6b1f4 (patch) | |
tree | 96d243cd0d50e9cec5987379837ef18a856f765b /src | |
parent | 2368a0fc19bcd56581eccd8397289e4513a383a5 (diff) | |
download | sssd-1a818ee8e01136166e7f2b37a441e7e779c6b1f4.tar.gz sssd-1a818ee8e01136166e7f2b37a441e7e779c6b1f4.tar.xz sssd-1a818ee8e01136166e7f2b37a441e7e779c6b1f4.zip |
NSS: Fix warning enumerated type mixed with another type
src/responder/nss/nsssrv_cmd.c:688: mixed_enum_type: enumerated type mixed with
another type
"enum sss_dp_acct_type" was mixed with type "int". ANSI C is not very
strict in this.
Reviewed-by: Michal Židek <mzidek@redhat.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/responder/nss/nsssrv_cmd.c | 6 | ||||
-rw-r--r-- | src/responder/nss/nsssrv_private.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/responder/nss/nsssrv_cmd.c b/src/responder/nss/nsssrv_cmd.c index c9c09a082..ea58920bc 100644 --- a/src/responder/nss/nsssrv_cmd.c +++ b/src/responder/nss/nsssrv_cmd.c @@ -561,7 +561,7 @@ static int nss_cmd_getpw_send_reply(struct nss_dom_ctx *dctx, bool filter) /* Currently only refreshing expired netgroups is supported. */ static bool -is_refreshed_on_bg(int req_type, +is_refreshed_on_bg(enum sss_dp_acct_type req_type, enum sss_dp_acct_type refresh_expired_interval) { if (refresh_expired_interval == 0) { @@ -584,7 +584,7 @@ static void nsssrv_dp_send_acct_req_done(struct tevent_req *req); errno_t check_cache(struct nss_dom_ctx *dctx, struct nss_ctx *nctx, struct ldb_result *res, - int req_type, + enum sss_dp_acct_type req_type, const char *opt_name, uint32_t opt_id, const char *extra, @@ -4169,7 +4169,7 @@ static errno_t nss_cmd_getsidby_search(struct nss_dom_ctx *dctx) char *name = NULL; char *req_name; uint32_t req_id; - int req_type; + enum sss_dp_acct_type req_type; nctx = talloc_get_type(cctx->rctx->pvt_ctx, struct nss_ctx); diff --git a/src/responder/nss/nsssrv_private.h b/src/responder/nss/nsssrv_private.h index e5f3bde50..e9f00b114 100644 --- a/src/responder/nss/nsssrv_private.h +++ b/src/responder/nss/nsssrv_private.h @@ -120,7 +120,7 @@ void nss_setent_notify_done(struct getent_ctx *getent_ctx); errno_t check_cache(struct nss_dom_ctx *dctx, struct nss_ctx *nctx, struct ldb_result *res, - int req_type, + enum sss_dp_acct_type req_type, const char *opt_name, uint32_t opt_id, const char *extra, |