From 8f1fe0572d1d9b9d28a33abf4d7542aff2d2765f Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 26 Aug 2007 03:34:59 +0000 Subject: [PATCH] * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning. * nis/nis_xdr.c (_xdr_nis_server): Likewise. * nis/yp_xdr.c (xdr_ypmaplist): Likewise. --- ChangeLog | 5 +++-- sunrpc/key_prot.c | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index d34cbac..4410c65 100644 --- a/ChangeLog +++ b/ChangeLog @@ -9,7 +9,8 @@ * Makerules: Use -p option with mkdir. - * nis/nis_xdr.c (_xdr_nis_server): Work around gcc alias warning. + * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning. + * nis/nis_xdr.c (_xdr_nis_server): Likewise. (_xdr_directory_obj): Likewise. (xdr_entry_obj): Likewise. (xdr_group_obj): Likewise. @@ -20,7 +21,7 @@ (_xdr_ib_request): Likewise. (_xdr_nis_taglist): Likewise. (xdr_cback_data): Likewise. - * nis/yp_xdr.c (xdr_ypmaplist): Work around gcc warning. + * nis/yp_xdr.c (xdr_ypmaplist): Likewise. (xdr_ypresp_maplist): Likewise. * stdio-common/Makefile: Avoid format string warning for tst-sprint. diff --git a/sunrpc/key_prot.c b/sunrpc/key_prot.c index 56a5414..63d2538 100644 --- a/sunrpc/key_prot.c +++ b/sunrpc/key_prot.c @@ -115,7 +115,7 @@ xdr_unixcred (XDR * xdrs, unixcred * objp) return FALSE; if (!INTUSE(xdr_u_int) (xdrs, &objp->gid)) return FALSE; - if (!INTUSE(xdr_array) (xdrs, (char **) &objp->gids.gids_val, + if (!INTUSE(xdr_array) (xdrs, (void *) &objp->gids.gids_val, (u_int *) & objp->gids.gids_len, MAXGIDS, sizeof (u_int), (xdrproc_t) INTUSE(xdr_u_int))) return FALSE; -- 2.7.4