summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorrodrigc <rodrigc@FreeBSD.org>2005-10-07 02:18:20 +0000
committerrodrigc <rodrigc@FreeBSD.org>2005-10-07 02:18:20 +0000
commit8ed272b3a67dc18324e8a83f2b65d5c67d5fc1fb (patch)
tree67005176bc32a3f93ac5be4246047cc956f2e7a6 /sbin
parent2e47ce1265a5abd752e51ed0211443920d031efe (diff)
downloadFreeBSD-src-8ed272b3a67dc18324e8a83f2b65d5c67d5fc1fb.zip
FreeBSD-src-8ed272b3a67dc18324e8a83f2b65d5c67d5fc1fb.tar.gz
Switch from K&R-style C prototypes to ISO/ANSI-style C prototypes.
Make prototype in extern.h match prototype in mount_ufs.c
Diffstat (limited to 'sbin')
-rw-r--r--sbin/mount/extern.h2
-rw-r--r--sbin/mount/mount.c30
-rw-r--r--sbin/mount/mount_ufs.c4
3 files changed, 11 insertions, 25 deletions
diff --git a/sbin/mount/extern.h b/sbin/mount/extern.h
index 638f8a4..2271da5 100644
--- a/sbin/mount/extern.h
+++ b/sbin/mount/extern.h
@@ -31,4 +31,4 @@ int checkvfsname(const char *, const char **);
const char **makevfslist(char *);
/* mount_ufs.c */
-int mount_ufs(int, char *const *);
+int mount_ufs(int, char * const []);
diff --git a/sbin/mount/mount.c b/sbin/mount/mount.c
index 6494426..b9b620d 100644
--- a/sbin/mount/mount.c
+++ b/sbin/mount/mount.c
@@ -121,9 +121,7 @@ remountable_fs_names[] = {
};
int
-main(argc, argv)
- int argc;
- char * const argv[];
+main(int argc, char *argv[])
{
const char *mntfromname, **vfslist, *vfstype;
struct fstab *fs;
@@ -330,10 +328,7 @@ main(argc, argv)
}
int
-ismounted(fs, mntbuf, mntsize)
- struct fstab *fs;
- struct statfs *mntbuf;
- int mntsize;
+ismounted(struct fstab *fs, struct statfs *mntbuf, int mntsize)
{
int i;
@@ -350,8 +345,7 @@ ismounted(fs, mntbuf, mntsize)
}
int
-isremountable(vfsname)
- const char *vfsname;
+isremountable(const char *vfsname)
{
const char **cp;
@@ -362,8 +356,7 @@ isremountable(vfsname)
}
int
-hasopt(mntopts, option)
- const char *mntopts, *option;
+hasopt(const char *mntopts, const char *option)
{
int negative, found;
char *opt, *optbuf;
@@ -387,9 +380,8 @@ hasopt(mntopts, option)
}
int
-mountfs(vfstype, spec, name, flags, options, mntopts)
- const char *vfstype, *spec, *name, *options, *mntopts;
- int flags;
+mountfs(const char *vfstype, const char *spec, const char *name, int flags,
+ const char *options, const char *mntopts)
{
const char *argv[100];
struct statfs sf;
@@ -505,8 +497,7 @@ mountfs(vfstype, spec, name, flags, options, mntopts)
}
void
-prmount(sfp)
- struct statfs *sfp;
+prmount(struct statfs *sfp)
{
int flags, i;
struct opt *o;
@@ -551,8 +542,7 @@ prmount(sfp)
}
struct statfs *
-getmntpt(name)
- const char *name;
+getmntpt(const char *name)
{
struct statfs *mntbuf;
int i, mntsize;
@@ -567,9 +557,7 @@ getmntpt(name)
}
char *
-catopt(s0, s1)
- char *s0;
- const char *s1;
+catopt(char *s0, const char *s1)
{
size_t i;
char *cp;
diff --git a/sbin/mount/mount_ufs.c b/sbin/mount/mount_ufs.c
index 178dd48..3c99576 100644
--- a/sbin/mount/mount_ufs.c
+++ b/sbin/mount/mount_ufs.c
@@ -68,9 +68,7 @@ static struct mntopt mopts[] = {
};
int
-mount_ufs(argc, argv)
- int argc;
- char * const argv[];
+mount_ufs(int argc, char * const argv[])
{
struct ufs_args args;
int ch, mntflags;
OpenPOWER on IntegriCloud