exit(EX_FAIL);
if (strcmp(fs_type, "nfs4") == 0)
- mnt_err = nfs4mount(spec, mount_point, &flags, &extra_opts, 0, fake);
+ mnt_err = nfs4mount(spec, mount_point, flags, &extra_opts, 0, fake);
else
- mnt_err = nfsmount(spec, mount_point, &flags, &extra_opts, 0, fake);
+ mnt_err = nfsmount(spec, mount_point, flags, &extra_opts, 0, fake);
if (mnt_err)
exit(EX_FAIL);
#define NFS4_MOUNT_UNSHARED 0x8000 /* 5 */
#define NFS4_MOUNT_FLAGMASK 0xFFFF
-int nfs4mount(const char *, const char *, int *, char **, int, int);
+int nfs4mount(const char *, const char *, int, char **, int, int);
#endif
return 0;
}
-int nfs4mount(const char *spec, const char *node, int *flags,
+int nfs4mount(const char *spec, const char *node, int flags,
char **extra_opts, int running_bg, int fake)
{
static struct nfs4_mount_data data;
if (!fake) {
if (mount(spec, node, "nfs4",
- *flags & ~(MS_USER|MS_USERS), &data)) {
+ flags & ~(MS_USER|MS_USERS), &data)) {
mount_error(spec, node, errno);
goto fail;
}
#define AUTH_GSS_SPKMP 390011
#endif
-int nfsmount(const char *, const char *, int *, char **, int, int);
+int nfsmount(const char *, const char *, int , char **, int, int);
#endif /* _NFS_MOUNT_H */
}
int
-nfsmount(const char *spec, const char *node, int *flags,
+nfsmount(const char *spec, const char *node, int flags,
char **extra_opts, int running_bg, int fake)
{
static char *prev_bg_host;
data.version = nfs_mount_data_version;
- if (*flags & MS_REMOUNT)
+ if (flags & MS_REMOUNT)
goto out_ok;
/*
if (!fake) {
if (mount(spec, node, "nfs",
- *flags & ~(MS_USER|MS_USERS), &data)) {
+ flags & ~(MS_USER|MS_USERS), &data)) {
mount_error(spec, node, errno);
goto fail;
}