summaryrefslogtreecommitdiff
path: root/usr.sbin/vipw
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2003-01-24 19:16:44 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2003-01-24 19:16:44 +0000
commitfcd55b9acbc2e43292d819facd9dadcb5d1cb2da (patch)
tree158a8788f98297a598d13afe2b44d87c53037429 /usr.sbin/vipw
parente7109f0838983b0693644304a2304f8545bc7293 (diff)
ansi
Diffstat (limited to 'usr.sbin/vipw')
-rw-r--r--usr.sbin/vipw/vipw.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/usr.sbin/vipw/vipw.c b/usr.sbin/vipw/vipw.c
index 65bf8270ef7..cdd6f500911 100644
--- a/usr.sbin/vipw/vipw.c
+++ b/usr.sbin/vipw/vipw.c
@@ -1,4 +1,4 @@
-/* $NetBSD: vipw.c,v 1.4 1996/05/15 23:23:50 jtc Exp $ */
+/* $OpenBSD: vipw.c,v 1.11 2003/01/24 19:16:43 deraadt Exp $ */
/*
* Copyright (c) 1987, 1993, 1994
@@ -59,9 +59,7 @@ void copyfile(int, int);
void usage(void);
int
-main(argc, argv)
- int argc;
- char *argv[];
+main(int argc, char *argv[])
{
int pfd, tfd;
struct stat begin, end;
@@ -109,8 +107,7 @@ main(argc, argv)
}
void
-copyfile(from, to)
- int from, to;
+copyfile(int from, int to)
{
int nr, nw, off;
char buf[8*1024];
@@ -128,11 +125,11 @@ copyfile(from, to)
TIMESPEC_TO_TIMEVAL(&tv[0], &sb.st_atimespec);
TIMESPEC_TO_TIMEVAL(&tv[1], &sb.st_mtimespec);
- (void) futimes(to, tv);
+ (void)futimes(to, tv);
}
void
-usage()
+usage(void)
{
extern char *__progname;