diff options
-rw-r--r-- | sbin/umount/umount.c | 2 | ||||
-rw-r--r-- | usr.sbin/rpc.umntall/mounttab.c | 18 |
2 files changed, 13 insertions, 7 deletions
diff --git a/sbin/umount/umount.c b/sbin/umount/umount.c index 32ffbb3..eb51f2a 100644 --- a/sbin/umount/umount.c +++ b/sbin/umount/umount.c @@ -588,7 +588,7 @@ xdr_dir(XDR *xdrsp, char *dirp) } void -usage() +usage(void) { (void)fprintf(stderr, "%s\n%s\n", diff --git a/usr.sbin/rpc.umntall/mounttab.c b/usr.sbin/rpc.umntall/mounttab.c index 9765f4f..56333ca 100644 --- a/usr.sbin/rpc.umntall/mounttab.c +++ b/usr.sbin/rpc.umntall/mounttab.c @@ -52,7 +52,8 @@ static void badline(const char *field, const char *bad); * so the client can notify the NFS server even after reboot. */ int -add_mtab(char *hostp, char *dirp) { +add_mtab(char *hostp, char *dirp) +{ FILE *mtabfile; if ((mtabfile = fopen(PATH_MOUNTTAB, "a")) == NULL) @@ -69,7 +70,8 @@ add_mtab(char *hostp, char *dirp) { * Read mounttab line for line and return struct mtablist. */ int -read_mtab(void) { +read_mtab(void) +{ struct mtablist **mtabpp, *mtabp; char *hostp, *dirp, *cp; char str[STRSIZ]; @@ -137,7 +139,8 @@ read_mtab(void) { * Unlink PATH_MOUNTAB if no entry is left. */ int -write_mtab(int verbose) { +write_mtab(int verbose) +{ struct mtablist *mtabp, *mp; FILE *mtabfile; int line; @@ -180,7 +183,8 @@ write_mtab(int verbose) { * Mark the entries as clean where RPC calls have been done successfully. */ void -clean_mtab(char *hostp, char *dirp, int verbose) { +clean_mtab(char *hostp, char *dirp, int verbose) +{ struct mtablist *mtabp; char *host; @@ -205,7 +209,8 @@ clean_mtab(char *hostp, char *dirp, int verbose) { * Free struct mtablist mtab. */ void -free_mtab() { +free_mtab(void) +{ struct mtablist *mtabp; while ((mtabp = mtabhead) != NULL) { @@ -218,7 +223,8 @@ free_mtab() { * Print bad lines to syslog. */ static void -badline(const char *field, const char *bad) { +badline(const char *field, const char *bad) +{ syslog(LOG_ERR, "bad mounttab %s field '%s'", field, (bad == NULL) ? "<null>" : bad); } |