]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
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 a19e16ad05aae99e756fb05090343dc385ae425d..e9cc972ae4ea9a25227004d851a6008869e2d7f3 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 f9952a9670055b4198dd4fad9c5968f7c4b53f4b..5395d8214693752117b435db0f06156c8fd3f57a 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);