aix-pag-complaints-20090603
authorDerrick Brashear <shadow@dementia.org>
Wed, 3 Jun 2009 16:13:26 +0000 (16:13 +0000)
committerDerrick Brashear <shadow@dementia.org>
Wed, 3 Jun 2009 16:13:26 +0000 (16:13 +0000)
LICENSE IPL10

make the new code work properly, thanks to aix's complaints

src/afs/afs_pioctl.c

index d5237a0..e9cc972 100644 (file)
@@ -583,8 +583,7 @@ afs_xioctl(void)
 #ifdef AFS_LINUX22_ENV
                    return -code;
 #else
-                   setuerror(code);
-                   return;
+                   return (setuerror(code), code);
 #endif
 #endif
 #endif
@@ -2400,7 +2399,7 @@ DECL_PIOCTL(PGetPAG)
 {
     afs_int32 pag;
 
-    if (aoutSize < sizeof(afs_int32)) {
+    if (*aoutSize < sizeof(afs_int32)) {
        return E2BIG;
     }