From fcd55b9acbc2e43292d819facd9dadcb5d1cb2da Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Fri, 24 Jan 2003 19:16:44 +0000 Subject: ansi --- usr.sbin/vipw/vipw.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'usr.sbin/vipw/vipw.c') 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; -- cgit v1.2.3