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/nss | |
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/nss')
-rw-r--r-- | server/responder/nss/nsssrv_cmd.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/server/responder/nss/nsssrv_cmd.c b/server/responder/nss/nsssrv_cmd.c index d090b9d1..367df36f 100644 --- a/server/responder/nss/nsssrv_cmd.c +++ b/server/responder/nss/nsssrv_cmd.c @@ -192,7 +192,7 @@ static int fill_pwent(struct sss_packet *packet, rp += 2*sizeof(uint32_t); if (add_domain) { - ret = snprintf(&body[rp], s1, namefmt, name, domain); + ret = snprintf((char *)&body[rp], s1, namefmt, name, domain); if (ret >= s1) { /* need more space, got creative with the print format ? */ t = ret - s1 + 1; @@ -206,7 +206,7 @@ static int fill_pwent(struct sss_packet *packet, sss_packet_get_body(packet, &body, &blen); /* retry */ - ret = snprintf(&body[rp], s1, namefmt, name, domain); + ret = snprintf((char *)&body[rp], s1, namefmt, name, domain); } if (ret != s1-1) { @@ -1375,7 +1375,7 @@ static int fill_grent(struct sss_packet *packet, /* 8-X: sequence of strings (name, passwd, mem..) */ if (add_domain) { - ret = snprintf(&body[rp], name_len, namefmt, name, domain); + ret = snprintf((char *)&body[rp], name_len, namefmt, name, domain); if (ret >= name_len) { /* need more space, got creative with the print format ? */ t = ret - name_len + 1; @@ -1389,7 +1389,7 @@ static int fill_grent(struct sss_packet *packet, sss_packet_get_body(packet, &body, &blen); /* retry */ - ret = snprintf(&body[rp], name_len, namefmt, name, domain); + ret = snprintf((char *)&body[rp], name_len, namefmt, name, domain); } if (ret != name_len-1) { @@ -1441,7 +1441,7 @@ static int fill_grent(struct sss_packet *packet, rp = blen - rsize; if (add_domain) { - ret = snprintf(&body[rp], name_len, namefmt, name, domain); + ret = snprintf((char *)&body[rp], name_len, namefmt, name, domain); if (ret >= name_len) { /* need more space, got creative with the print format ? */ t = ret - name_len + 1; @@ -1455,7 +1455,7 @@ static int fill_grent(struct sss_packet *packet, sss_packet_get_body(packet, &body, &blen); /* retry */ - ret = snprintf(&body[rp], name_len, namefmt, name, domain); + ret = snprintf((char *)&body[rp], name_len, namefmt, name, domain); } if (ret != name_len-1) { @@ -1531,7 +1531,7 @@ static int fill_grent(struct sss_packet *packet, rp = blen - rsize; if (add_domain) { - ret = snprintf(&body[rp], name_len, namefmt, name, domain); + ret = snprintf((char *)&body[rp], name_len, namefmt, name, domain); if (ret >= name_len) { /* need more space, got creative with the print format ? */ t = ret - name_len + 1; @@ -1545,7 +1545,7 @@ static int fill_grent(struct sss_packet *packet, sss_packet_get_body(packet, &body, &blen); /* retry */ - ret = snprintf(&body[rp], name_len, namefmt, name, domain); + ret = snprintf((char *)&body[rp], name_len, namefmt, name, domain); } if (ret != name_len-1) { |