From: chip Date: Tue, 9 Sep 2003 17:53:01 +0000 (+0000) Subject: * utils/showmount/showmount.c (main): Fix inet_ntoa() parameter. X-Git-Tag: nfs-utils-1-0-5-post2nfs-utils-1-0-5-post3~4 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=235939e83b6513bf867f82525ed726e65069fc5e;p=nfs-utils.git * utils/showmount/showmount.c (main): Fix inet_ntoa() parameter. * tools/rpcgen/rpc_cout.c (print_header): Remove unused vars. * tools/rpcgen/rpc_parse.c (def_union): Likewise. --- diff --git a/ChangeLog b/ChangeLog index 67e753b..a9f2fcf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,9 @@ * debian/changelog: Version 1.0.5-3. * support/export/hostname.c (get_reliable_hostbyaddr): Fix crash on invalid reverse DNS. + * utils/showmount/showmount.c (main): Fix inet_ntoa() parameter. + * tools/rpcgen/rpc_cout.c (print_header): Remove unused vars. + * tools/rpcgen/rpc_parse.c (def_union): Likewise. 2003-08-22 Chip Salzenberg diff --git a/tools/rpcgen/rpc_cout.c b/tools/rpcgen/rpc_cout.c index 5f4c3e7..cf281ad 100644 --- a/tools/rpcgen/rpc_cout.c +++ b/tools/rpcgen/rpc_cout.c @@ -156,9 +156,6 @@ static void print_header(definition *def) { decl_list *dl; - bas_type *ptr; - int i; - print_generic_header(def->def_name, def->def_kind != DEF_TYPEDEF || diff --git a/tools/rpcgen/rpc_parse.c b/tools/rpcgen/rpc_parse.c index dcbe8db..577312e 100644 --- a/tools/rpcgen/rpc_parse.c +++ b/tools/rpcgen/rpc_parse.c @@ -288,7 +288,7 @@ def_union(definition *defp) { token tok; declaration dec; - case_list *cases,*tcase; + case_list *cases; case_list **tailp; int flag; diff --git a/utils/showmount/showmount.c b/utils/showmount/showmount.c index 1ff3fa1..92c6ef9 100644 --- a/utils/showmount/showmount.c +++ b/utils/showmount/showmount.c @@ -154,7 +154,7 @@ char **argv; break; } - if (inet_aton(hostname, &server_addr.sin_addr.s_addr)) { + if (inet_aton(hostname, &server_addr.sin_addr)) { server_addr.sin_family = AF_INET; } else {