diff options
author | stefanf <stefanf@FreeBSD.org> | 2005-02-10 09:00:55 +0000 |
---|---|---|
committer | stefanf <stefanf@FreeBSD.org> | 2005-02-10 09:00:55 +0000 |
commit | 43fa8deb7ce8e94858b8734f83e28c1bdbbf443c (patch) | |
tree | 209b8250e6c9c22be236a9379433a354b34fc2e2 /usr.sbin/pwd_mkdb/pwd_mkdb.c | |
parent | bdc8daf459a072aef25aa3ac46e8db5ec2b5c894 (diff) | |
download | FreeBSD-src-43fa8deb7ce8e94858b8734f83e28c1bdbbf443c.zip FreeBSD-src-43fa8deb7ce8e94858b8734f83e28c1bdbbf443c.tar.gz |
Turn K&R functions into prototypes.
Diffstat (limited to 'usr.sbin/pwd_mkdb/pwd_mkdb.c')
-rw-r--r-- | usr.sbin/pwd_mkdb/pwd_mkdb.c | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/usr.sbin/pwd_mkdb/pwd_mkdb.c b/usr.sbin/pwd_mkdb/pwd_mkdb.c index ed45d83..e8edaaa 100644 --- a/usr.sbin/pwd_mkdb/pwd_mkdb.c +++ b/usr.sbin/pwd_mkdb/pwd_mkdb.c @@ -624,9 +624,7 @@ main(int argc, char *argv[]) } int -scan(fp, pw) - FILE *fp; - struct passwd *pw; +scan(FILE * fp, struct passwd *pw) { static int lcnt; char *p; @@ -672,9 +670,7 @@ fmt: errno = EFTYPE; /* XXX */ } void -cp(from, to, mode) - char *from, *to; - mode_t mode; +cp(char *from, char *to, mode_t mode) { static char buf[MAXBSIZE]; int from_fd, rcount, to_fd, wcount; @@ -704,8 +700,7 @@ cp(from, to, mode) void -mv(from, to) - char *from, *to; +mv(char *from, char *to) { char buf[MAXPATHLEN]; @@ -718,8 +713,7 @@ mv(from, to) } void -error(name) - const char *name; +error(const char *name) { warn("%s", name); @@ -728,7 +722,7 @@ error(name) } void -cleanup() +cleanup(void) { char buf[MAXPATHLEN]; @@ -748,7 +742,7 @@ cleanup() } static void -usage() +usage(void) { (void)fprintf(stderr, |