diff options
author | Justin Mitchell <jumitche@redhat.com> | 2017-09-28 14:29:01 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2017-10-26 08:50:08 -0400 |
commit | 545b7409de356168a39644d38e2ab5f77f468de7 (patch) | |
tree | 681e77a655216871cc2edf9c41ec055bd87e2e51 /support/nfsidmap/libnfsidmap.c | |
parent | f821eb7f9624f047a12fbf5c9dce23994eeb50e8 (diff) | |
download | nfs-utils-545b7409de356168a39644d38e2ab5f77f468de7.tar.gz nfs-utils-545b7409de356168a39644d38e2ab5f77f468de7.tar.xz nfs-utils-545b7409de356168a39644d38e2ab5f77f468de7.zip |
nfs-utils: cleanup warnings from merged libnfsidmap code
Clean up a bunch of warnings about unused parameters,
signedness differences, etc that we inherited from
the merged libnfsidmap code.
Signed-off-by: Justin Mitchell <jumitche@redhat.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'support/nfsidmap/libnfsidmap.c')
-rw-r--r-- | support/nfsidmap/libnfsidmap.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/support/nfsidmap/libnfsidmap.c b/support/nfsidmap/libnfsidmap.c index aa368b7..931387a 100644 --- a/support/nfsidmap/libnfsidmap.c +++ b/support/nfsidmap/libnfsidmap.c @@ -103,7 +103,7 @@ nfs4_idmap_log_function_t idmap_log_func = default_logger; static char * toupper_str(char *s) { - int i; + size_t i; for (i=0; i < strlen(s); i++) s[i] = toupper(s[i]); return s; @@ -128,7 +128,8 @@ static int id_as_chars(char *name, uid_t *id) static int dns_txt_query(char *domain, char **nfs4domain) { char *txtname = NFS4DNSTXTREC; - char *msg, *answ, *eom, *mptr; + unsigned char *msg, *eom, *mptr; + char *answ; int len, status = -1; HEADER *hdr; @@ -323,7 +324,8 @@ out: unload_plugins(plgns); return ret; } -void nfs4_cleanup_name_mapping() + +void nfs4_cleanup_name_mapping(void) { if (nfs4_plugins) unload_plugins(nfs4_plugins); @@ -534,7 +536,7 @@ struct conf_list *get_local_realms(void) } int -nfs4_get_default_domain(char *server, char *domain, size_t len) +nfs4_get_default_domain(char *UNUSED(server), char *domain, size_t len) { char *d = get_default_domain(); |