aboutsummaryrefslogtreecommitdiff
path: root/nis/yp_xdr.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2007-08-26 02:06:10 +0000
committerUlrich Drepper <drepper@redhat.com>2007-08-26 02:06:10 +0000
commitbd0dcd289c617904265f0f1903582f5ee122eff5 (patch)
tree0e7595b942859dc1143c533d865d693c43f6ae9f /nis/yp_xdr.c
parent01339a67096fe99e866832ac39e03f7679a35ba4 (diff)
downloadglibc-bd0dcd289c617904265f0f1903582f5ee122eff5.tar
glibc-bd0dcd289c617904265f0f1903582f5ee122eff5.tar.gz
glibc-bd0dcd289c617904265f0f1903582f5ee122eff5.tar.bz2
glibc-bd0dcd289c617904265f0f1903582f5ee122eff5.zip
* nis/nis_xdr.c (_xdr_nis_server): Work around gcc alias warning.
(_xdr_directory_obj): Likewise. (xdr_entry_obj): Likewise. (xdr_group_obj): Likewise. (xdr_link_obj): Likewise. (xdr_table_obj): Likewise. (_xdr_nis_result): Likewise. (_xdr_ns_request): Likewise. (_xdr_ib_request): Likewise. (_xdr_nis_taglist): Likewise. (xdr_cback_data): Likewise. * nis/yp_xdr.c (xdr_ypmaplist): Work around gcc warning. (xdr_ypresp_maplist): Likewise.
Diffstat (limited to 'nis/yp_xdr.c')
-rw-r--r--nis/yp_xdr.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/nis/yp_xdr.c b/nis/yp_xdr.c
index b87ee06151..bdd5d8725f 100644
--- a/nis/yp_xdr.c
+++ b/nis/yp_xdr.c
@@ -195,8 +195,9 @@ xdr_ypmaplist (XDR *xdrs, ypmaplist *objp)
{
if (!xdr_mapname (xdrs, &objp->map))
return FALSE;
- return xdr_pointer (xdrs, (char **) &objp->next, sizeof (ypmaplist),
- (xdrproc_t) xdr_ypmaplist);
+ /* Prevent gcc warning about alias violation. */
+ char **tp = (void *) &objp->next;
+ return xdr_pointer (xdrs, tp, sizeof (ypmaplist), (xdrproc_t) xdr_ypmaplist);
}
libnsl_hidden_def (xdr_ypmaplist)
@@ -205,8 +206,9 @@ xdr_ypresp_maplist (XDR *xdrs, ypresp_maplist *objp)
{
if (!xdr_ypstat (xdrs, &objp->stat))
return FALSE;
- return xdr_pointer (xdrs, (char **) &objp->maps, sizeof (ypmaplist),
- (xdrproc_t) xdr_ypmaplist);
+ /* Prevent gcc warning about alias violation. */
+ char **tp = (void *) &objp->maps;
+ return xdr_pointer (xdrs, tp, sizeof (ypmaplist), (xdrproc_t) xdr_ypmaplist);
}
libnsl_hidden_def (xdr_ypresp_maplist)