]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
DEVEL15-pinstall-unused-vars-20081129
authorSimon Wilkinson <sxw@inf.ed.ac.uk>
Sat, 29 Nov 2008 18:24:39 +0000 (18:24 +0000)
committerDerrick Brashear <shadow@dementia.org>
Sat, 29 Nov 2008 18:24:39 +0000 (18:24 +0000)
LICENSE IPL10

remove unused variables from pinstall for the systems which don't need them

src/pinstall/install.c

index ade14507a201c1d0735447c1be0f9b83d660c6dd..cf5fa88ec6d27b23a140d94c02a150e2358d93ff 100644 (file)
@@ -487,8 +487,10 @@ main(int argc, char *argv[])
 #endif /* AFS_HPUX_ENV */
     char pnametmp[1024];
     int pnamelen;
+#if     !defined(AFS_AIX_ENV) && !defined(AFS_HPUX_ENV) && !defined(AFS_SUN5_ENV) && !defined(AFS_DECOSF_ENV) && !defined(AFS_SGI_ENV) && !defined(AFS_LINUX20_ENV) && !defined(AFS_DARWIN_ENV) && !defined(AFS_OBSD_ENV) && !defined(AFS_NBSD_ENV)
     afs_int32 newcode;
     static char diskBuffer[BUFSIZE];   /* must be static to avoid compiler bugs for large stuff */
+#endif
     char myHostName[100];
     struct timeval tvp[2];
     int isDir;