From: Benjamin Kaduk Date: Fri, 2 Mar 2018 02:28:23 +0000 (-0600) Subject: afs_pioctl: avoid -Wpointer-sign X-Git-Tag: upstream/1.8.0^2~1 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=acb0e84df0cdff1ee1b4098b2705e5a30dd7eb38;p=packages%2Fo%2Fopenafs.git afs_pioctl: avoid -Wpointer-sign Change the declaration of 'addr' to be a signed int, to match RXAFS_CallBackRxConnAddr() and the afsd_pd_GetInt() used with it. This was detected by clang 4.0 in FreeBSD 11.1, via -Wpointer-sign. Reviewed-on: https://gerrit.openafs.org/12934 Tested-by: BuildBot Reviewed-by: Benjamin Kaduk (cherry picked from commit 79f33b859aeb3c91f2cce7597fdc138978c4e1d9) Change-Id: Iee85059bebfc8d6fbda3409b720576bd4f6c5f8f Reviewed-on: https://gerrit.openafs.org/12938 Tested-by: BuildBot Reviewed-by: Mark Vitale Reviewed-by: Benjamin Kaduk --- diff --git a/src/afs/afs_pioctl.c b/src/afs/afs_pioctl.c index ce6b96b04..6c8da541c 100644 --- a/src/afs/afs_pioctl.c +++ b/src/afs/afs_pioctl.c @@ -5149,12 +5149,12 @@ DECL_PIOCTL(PSetCachingThreshold) DECL_PIOCTL(PCallBackAddr) { #ifndef UKERNEL - afs_uint32 addr, code; + afs_uint32 code; int srvAddrCount; struct server *ts; struct srvAddr *sa; struct afs_conn *tc; - afs_int32 i, j; + afs_int32 i, j, addr; struct unixuser *tu; struct srvAddr **addrs; struct rx_connection *rxconn;