Print this page
*** NO COMMENTS ***
@@ -73,11 +73,11 @@
#endif
static void usage();
static int nfs_unmount(char *, int);
static void inform_server(char *, char *, bool_t);
static struct extmnttab *mnttab_find();
-extern int __clnt_bindresvport();
+extern int __clnt_bindresvport(CLIENT *);
static int is_v4_mount(struct extmnttab *);
static char *myname;
static char typename[64];
@@ -96,11 +96,11 @@
#endif
(void) textdomain(TEXT_DOMAIN);
myname = strrchr(argv[0], '/');
myname = myname ? myname+1 : argv[0];
- (void) sprintf(typename, "nfs %s", myname);
+ (void) snprintf(typename, sizeof (typename), "nfs %s", myname);
argv[0] = typename;
/*
* Set options
*/
@@ -152,11 +152,11 @@
static void
usage()
{
(void) fprintf(stderr,
- gettext("Usage: nfs umount [-o opts] {server:path | dir}\n"));
+ gettext("Usage: nfs umount [-f] {server:path | dir}\n"));
exit(RET_ERR);
}
static int
nfs_unmount(char *pathname, int umnt_flag)
@@ -224,11 +224,11 @@
fsfreemnttab(res);
res = fsdupmnttab(&mnt);
}
}
- fclose(fp);
+ (void) fclose(fp);
return (res);
}
/*
* If quick is TRUE, it will try to inform server quickly
@@ -359,11 +359,10 @@
int
is_v4_mount(struct extmnttab *mntp)
{
kstat_ctl_t *kc = NULL; /* libkstat cookie */
kstat_t *ksp;
- ulong_t fsid;
struct mntinfo_kstat mik;
if (mntp == NULL)
return (FALSE);