diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2009-04-07 12:11:48 -0400 |
---|---|---|
committer | Simo Sorce <ssorce@redhat.com> | 2009-04-07 14:33:16 -0400 |
commit | e8a7526b06acf4af322fdab593c8bafbd9f4a103 (patch) | |
tree | a2f910fca3d9d3ef0b558fbe8ab5823c7a0b4f23 /server/responder/pam | |
parent | 65f90758d4df5581bc94746d47a1548ed8ff738b (diff) | |
download | sssd-e8a7526b06acf4af322fdab593c8bafbd9f4a103.tar.gz sssd-e8a7526b06acf4af322fdab593c8bafbd9f4a103.tar.bz2 sssd-e8a7526b06acf4af322fdab593c8bafbd9f4a103.zip |
Clean up warnings in SSSD
Diffstat (limited to 'server/responder/pam')
-rw-r--r-- | server/responder/pam/pamsrv_cmd.c | 4 | ||||
-rw-r--r-- | server/responder/pam/pamsrv_util.c | 1 |
2 files changed, 2 insertions, 3 deletions
diff --git a/server/responder/pam/pamsrv_cmd.c b/server/responder/pam/pamsrv_cmd.c index 8f74e96f..22a2b85d 100644 --- a/server/responder/pam/pamsrv_cmd.c +++ b/server/responder/pam/pamsrv_cmd.c @@ -3,6 +3,7 @@ #include "util/util.h" #include "confdb/confdb.h" +#include "responder/common/responder_packet.h" #include "responder/pam/pam_LOCAL_domain.h" #include "responder/pam/pamsrv.h" @@ -22,7 +23,7 @@ static int pam_parse_in_data(struct sss_names_ctx *snctx, for (start = end; end < last; end++) if (body[end] == '\0') break; if (body[end++] != '\0') return EINVAL; - ret = sss_parse_name(pd, snctx, &body[start], &pd->domain, &pd->user); + ret = sss_parse_name(pd, snctx, (char *)&body[start], &pd->domain, &pd->user); if (ret != EOK) return ret; for (start = end; end < last; end++) if (body[end] == '\0') break; @@ -100,7 +101,6 @@ static void pam_reply_delay(struct tevent_context *ev, struct tevent_timer *te, static void pam_reply(struct pam_data *pd) { struct cli_ctx *cctx; - struct sss_cmd_ctx *rctx; uint8_t *body; size_t blen; int ret; diff --git a/server/responder/pam/pamsrv_util.c b/server/responder/pam/pamsrv_util.c index 1d0ab103..ab9b733e 100644 --- a/server/responder/pam/pamsrv_util.c +++ b/server/responder/pam/pamsrv_util.c @@ -114,7 +114,6 @@ bool dp_pack_pam_response(DBusMessage *msg, struct pam_data *pd) bool dp_unpack_pam_response(DBusMessage *msg, struct pam_data *pd, DBusError *dbus_error) { - int ret; DBusMessageIter iter; DBusMessageIter sub_iter; int type; |