From 04b0ab5344877d5909f785dafee216e80ea24ce4 Mon Sep 17 00:00:00 2001 From: jtc Date: Thu, 21 Mar 1996 18:30:19 +0000 Subject: [PATCH] Be pedantic, main() returns int in Standard C. --- games/arithmetic/arithmetic.c | 6 +++--- gnu/usr.bin/cpio/main.c | 2 +- gnu/usr.bin/sort/sort.c | 2 +- gnu/usr.bin/tar/tar.c | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/games/arithmetic/arithmetic.c b/games/arithmetic/arithmetic.c index c382cc4f0fd6..6cda404fb857 100644 --- a/games/arithmetic/arithmetic.c +++ b/games/arithmetic/arithmetic.c @@ -1,4 +1,4 @@ -/* $NetBSD: arithmetic.c,v 1.5 1995/03/21 11:59:32 cgd Exp $ */ +/* $NetBSD: arithmetic.c,v 1.6 1996/03/21 18:30:19 jtc Exp $ */ /* * Copyright (c) 1989, 1993 @@ -46,7 +46,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)arithmetic.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$NetBSD: arithmetic.c,v 1.5 1995/03/21 11:59:32 cgd Exp $"; +static char rcsid[] = "$NetBSD: arithmetic.c,v 1.6 1996/03/21 18:30:19 jtc Exp $"; #endif #endif /* not lint */ @@ -101,7 +101,7 @@ time_t qtime; * bound is 10. After every NQUESTS questions, statistics on the performance * so far are printed. */ -void +int main(argc, argv) int argc; char **argv; diff --git a/gnu/usr.bin/cpio/main.c b/gnu/usr.bin/cpio/main.c index 78b5fc53145f..1e87b1a248ef 100644 --- a/gnu/usr.bin/cpio/main.c +++ b/gnu/usr.bin/cpio/main.c @@ -450,7 +450,7 @@ initialize_buffers () bzero (zeros_512, 512); } -void +int main (argc, argv) int argc; char *argv[]; diff --git a/gnu/usr.bin/sort/sort.c b/gnu/usr.bin/sort/sort.c index 13d7959ba4c4..a5ab7a282344 100644 --- a/gnu/usr.bin/sort/sort.c +++ b/gnu/usr.bin/sort/sort.c @@ -1451,7 +1451,7 @@ set_ordering (s, key, blanktype) return s; } -void +int main (argc, argv) int argc; char *argv[]; diff --git a/gnu/usr.bin/tar/tar.c b/gnu/usr.bin/tar/tar.c index bec3be255ea8..79cb2358a8f6 100644 --- a/gnu/usr.bin/tar/tar.c +++ b/gnu/usr.bin/tar/tar.c @@ -18,7 +18,7 @@ along with GNU Tar; see the file COPYING. If not, write to the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #ifndef lint -static char rcsid[] = "$Id: tar.c,v 1.6 1993/08/07 07:42:54 cgd Exp $"; +static char rcsid[] = "$Id: tar.c,v 1.7 1996/03/21 18:35:51 jtc Exp $"; #endif /* not lint */ /* @@ -194,7 +194,7 @@ struct option long_options[] = /* * Main routine for tar. */ -void +int main (argc, argv) int argc; char **argv;