diff --git a/src/afsd/afsd_kernel.c b/src/afsd/afsd_kernel.c index d93dc2a4f1..dbf07f46e1 100644 --- a/src/afsd/afsd_kernel.c +++ b/src/afsd/afsd_kernel.c @@ -510,8 +510,8 @@ afsd_mount_afs(const char *rn, const char *cacheMountDir) printf("%s: Mounting the AFS root on '%s', flags: %d.\n", rn, cacheMountDir, mountFlags); #if defined(AFS_FBSD60_ENV) - /* data must be non-NULL but is otherwise ignored */ - if ((mount(MOUNT_AFS, cacheMountDir, mountFlags, rn)) < 0) { + /* data must be non-const non-NULL but is otherwise ignored */ + if ((mount(MOUNT_AFS, cacheMountDir, mountFlags, &mountFlags)) < 0) { #elif defined(AFS_FBSD_ENV) if ((mount("AFS", cacheMountDir, mountFlags, (caddr_t) 0)) < 0) { #elif defined(AFS_AIX_ENV)