]> git.decadent.org.uk Git - nfs-utils.git/commit
nfs-utils: Fix C aliasing rules violation in nfs_getrpccaller()
authorChuck Lever <chuck.lever@oracle.com>
Mon, 19 Jul 2010 14:09:12 +0000 (10:09 -0400)
committerSteve Dickson <steved@redhat.com>
Mon, 19 Jul 2010 14:09:12 +0000 (10:09 -0400)
commit0bd7e91cea26bcfc5581290e4cdd87870da29b9e
treeb815319612f070e50967231ec9e7c7b20e9d8008
parenta8715bec8bd671135f20fc0422d2a9fc0993758a
nfs-utils: Fix C aliasing rules violation in nfs_getrpccaller()

Squelch compiler warnings reported with -Wextra:

In file included from statd.c:24:
../../support/include/rpcmisc.h: In function nfs_getrpccaller_in:
../../support/include/rpcmisc.h:58: warning: dereferencing type-punned
pointer might break strict-aliasing rules
../../support/include/rpcmisc.h: In function nfs_getrpccaller:
../../support/include/rpcmisc.h:63: warning: dereferencing type-punned
pointer might break strict-aliasing rules

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
support/include/rpcmisc.h