From ec19ea84b8117fa04d9e5cf9d8945e0bacc2596e Mon Sep 17 00:00:00 2001 From: ed Date: Sat, 2 Jan 2010 11:05:34 +0000 Subject: ANSIfy some more tools in usr.sbin/. Most of these tools build with WARNS=6, except for their use of K&R function declarations. --- usr.sbin/chroot/chroot.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'usr.sbin/chroot/chroot.c') diff --git a/usr.sbin/chroot/chroot.c b/usr.sbin/chroot/chroot.c index cc924a0..a0122f7 100644 --- a/usr.sbin/chroot/chroot.c +++ b/usr.sbin/chroot/chroot.c @@ -61,9 +61,7 @@ char *group; /* group to switch to ... */ char *grouplist; /* group list to switch to ... */ int -main(argc, argv) - int argc; - char *argv[]; +main(int argc, char *argv[]) { struct group *gp; struct passwd *pw; @@ -179,7 +177,7 @@ main(argc, argv) } static void -usage() +usage(void) { (void)fprintf(stderr, "usage: chroot [-g group] [-G group,group,...] " "[-u user] newroot [command]\n"); -- cgit v1.1