]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
OpenBSD: Fix parameters in call to afs_close()
authorAntoine Verheijen <antoine@ualberta.ca>
Wed, 19 Jan 2011 20:30:24 +0000 (13:30 -0700)
committerDerrick Brashear <shadow@dementia.org>
Sat, 22 Jan 2011 20:59:55 +0000 (12:59 -0800)
OpenBSD passes an extra parameter in a call to afs_close()
in its OS-specific code. It went undetected in the past
but now causes compile headaches because of more accurate
prototypes in the header file. This patch removes the
offending extra parameter (which never actually caused any
problems because it was the last one in the parameter list).

Reviewed-on: http://gerrit.openafs.org/3685
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 5ff6c88fcc0c35843e91dc45e4bd297efd0d4445)

Change-Id: I7d2df5fe80bd4de8c74200ada879a7bc1358e134
Reviewed-on: http://gerrit.openafs.org/3719
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
src/afs/OBSD/osi_vnodeops.c

index b45ba6cfb54efbd93ab1b0407bcc359a5e9b7c1a..317cb52a68bd38f26e449942d2b3d2a6c5a565dc 100644 (file)
@@ -394,7 +394,7 @@ afs_obsd_close(void *v)
     int code;
 
     AFS_GLOCK();
-    code = afs_close(VTOAFS(ap->a_vp), ap->a_fflag, ap->a_cred, ap->a_p);
+    code = afs_close(VTOAFS(ap->a_vp), ap->a_fflag, ap->a_cred);
     AFS_GUNLOCK();
     return code;
 }