Unix CM: Make cache bypass build again
authorSimon Wilkinson <sxw@your-file-system.com>
Sat, 6 Feb 2010 13:04:50 +0000 (14:04 +0100)
committerDerrick Brashear <shadow@dementia.org>
Tue, 9 Feb 2010 18:10:32 +0000 (10:10 -0800)
My recent afs_pioctl changes broke the build when cache bypass is
enabled. Fix this.

Change-Id: I515ff3c743d8f63c086ead86991ad6cd9faaab93
Reviewed-on: http://gerrit.openafs.org/1280
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

src/afs/afs_pioctl.c

index 9b60700..79baf27 100644 (file)
@@ -5004,8 +5004,8 @@ DECL_PIOCTL(PSetCachingThreshold)
     }
        
     /* Return the current size threshold */
-    if (getting) {
-       return afs_pd_putInt32(aout, cache_bypass_threshold);
+    if (getting)
+       return afs_pd_putInt(aout, cache_bypass_threshold);
 
     return(0);
 }