rpmlint-try2-20090629
authorchristof.hanke@rzg.mpg.de <christof.hanke@rzg.mpg.de>
Mon, 29 Jun 2009 21:24:23 +0000 (21:24 +0000)
committerDerrick Brashear <shadow@dementia.org>
Mon, 29 Jun 2009 21:24:23 +0000 (21:24 +0000)
LICENSE IPL10
FIXES 124951

remove unneeded return; fix iob initialization for curpag pioctl

src/afs/afs_pioctl.c
src/auth/ktc.c

index a19e16a..e9cc972 100644 (file)
@@ -683,7 +683,6 @@ afs_xioctl(void)
 #if defined(AFS_OSF_ENV) || defined(AFS_DARWIN_ENV) || defined(AFS_XBSD_ENV)
     return (code);
 #endif
-return 0;
 }
 #endif /* AFS_SGI_ENV */
 #endif /* AFS_HPUX102_ENV */
index f9952a9..5395d82 100644 (file)
@@ -1622,7 +1622,7 @@ ktc_curpag(void)
     afs_int32 pag;
 
     /* now setup for the pioctl */
-    iob.in = -1;
+    iob.in = NULL;
     iob.in_size = 0;
     iob.out = &pag;
     iob.out_size = sizeof(afs_int32);