diff options
author | des <des@FreeBSD.org> | 2002-02-05 06:49:11 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2002-02-05 06:49:11 +0000 |
commit | 3f7a9ec8215356c8575697de1eb36c52530c5ecb (patch) | |
tree | 2e638b82d88cce4cc1171d15c2aa709fa17e59f4 /usr.sbin/vipw/vipw.c | |
parent | 53f5633b02bcb4a1455ea9aa2bce1e7162927575 (diff) | |
download | FreeBSD-src-3f7a9ec8215356c8575697de1eb36c52530c5ecb.zip FreeBSD-src-3f7a9ec8215356c8575697de1eb36c52530c5ecb.tar.gz |
ANSIfy and constify.
Sponsored by: DARPA, NAI Labs
Diffstat (limited to 'usr.sbin/vipw/vipw.c')
-rw-r--r-- | usr.sbin/vipw/vipw.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/usr.sbin/vipw/vipw.c b/usr.sbin/vipw/vipw.c index 8986ab3..6d84990 100644 --- a/usr.sbin/vipw/vipw.c +++ b/usr.sbin/vipw/vipw.c @@ -61,13 +61,11 @@ extern char *mppath; extern char *masterpasswd; char *tempname; -void copyfile __P((int, int)); -static void usage __P((void)); +static void copyfile(int, int); +static void usage(void); int -main(argc, argv) - int argc; - char *argv[]; +main(int argc, char *argv[]) { int pfd, tfd; struct stat begin, end; @@ -125,9 +123,8 @@ main(argc, argv) exit(0); } -void -copyfile(from, to) - int from, to; +static void +copyfile(int from, int to) { int nr, nw, off; char buf[8*1024]; @@ -141,7 +138,7 @@ copyfile(from, to) } static void -usage() +usage(void) { (void)fprintf(stderr, "usage: vipw [ -d directory ]\n"); |