From: Sevan Janiyan Date: Sun, 4 Nov 2018 14:14:00 +0000 (+0000) Subject: Drop main() prototype. X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/host.html?a=commitdiff_plain;h=refs%2Fchanges%2F36%2F3536%2F1;p=minix.git Drop main() prototype. Sync with NetBSD-8 closes #269 Change-Id: I4ce3bcbc1a1dc71745fe77bd581d07aeafc2f01b --- diff --git a/bin/echo/echo.c b/bin/echo/echo.c index 81f24ac1c..2e593630a 100644 --- a/bin/echo/echo.c +++ b/bin/echo/echo.c @@ -1,4 +1,4 @@ -/* $NetBSD: echo.c,v 1.18 2008/09/18 05:42:08 dholland Exp $ */ +/* $NetBSD: echo.c,v 1.19 2016/09/05 01:00:07 sevan Exp $ */ /* * Copyright (c) 1989, 1993 @@ -40,7 +40,7 @@ __COPYRIGHT( #if 0 static char sccsid[] = "@(#)echo.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: echo.c,v 1.18 2008/09/18 05:42:08 dholland Exp $"); +__RCSID("$NetBSD: echo.c,v 1.19 2016/09/05 01:00:07 sevan Exp $"); #endif #endif /* not lint */ @@ -49,8 +49,6 @@ __RCSID("$NetBSD: echo.c,v 1.18 2008/09/18 05:42:08 dholland Exp $"); #include #include -int main(int, char *[]); - /* ARGSUSED */ int main(int argc, char *argv[]) diff --git a/bin/expr/expr.y b/bin/expr/expr.y index f368b6ee8..4efcf59ef 100644 --- a/bin/expr/expr.y +++ b/bin/expr/expr.y @@ -1,4 +1,4 @@ -/* $NetBSD: expr.y,v 1.38 2012/03/15 02:02:20 joerg Exp $ */ +/* $NetBSD: expr.y,v 1.39 2016/09/05 01:00:07 sevan Exp $ */ /*_ * Copyright (c) 2000 The NetBSD Foundation, Inc. @@ -32,7 +32,7 @@ %{ #include #ifndef lint -__RCSID("$NetBSD: expr.y,v 1.38 2012/03/15 02:02:20 joerg Exp $"); +__RCSID("$NetBSD: expr.y,v 1.39 2016/09/05 01:00:07 sevan Exp $"); #endif /* not lint */ #include @@ -55,8 +55,6 @@ static int is_zero_or_null(const char *); static int is_integer(const char *); static int64_t perform_arith_op(const char *, const char *, const char *); -int main(int, const char * const *); - #define YYSTYPE const char * %} diff --git a/bin/ls/main.c b/bin/ls/main.c index 3b9e81c2c..c1316aaec 100644 --- a/bin/ls/main.c +++ b/bin/ls/main.c @@ -1,4 +1,4 @@ -/* $NetBSD: main.c,v 1.4 2008/04/28 20:22:51 martin Exp $ */ +/* $NetBSD: main.c,v 1.5 2016/09/05 01:00:07 sevan Exp $ */ /*- * Copyright (c) 1999 The NetBSD Foundation, Inc. @@ -32,7 +32,7 @@ #include #ifndef lint -__RCSID("$NetBSD: main.c,v 1.4 2008/04/28 20:22:51 martin Exp $"); +__RCSID("$NetBSD: main.c,v 1.5 2016/09/05 01:00:07 sevan Exp $"); #endif /* not lint */ #include @@ -41,8 +41,6 @@ __RCSID("$NetBSD: main.c,v 1.4 2008/04/28 20:22:51 martin Exp $"); #include "ls.h" #include "extern.h" -int main(int, char *[]); - int main(int argc, char *argv[]) { diff --git a/bin/sync/sync.c b/bin/sync/sync.c index 2b9c36783..1ae14c1f7 100644 --- a/bin/sync/sync.c +++ b/bin/sync/sync.c @@ -1,4 +1,4 @@ -/* $NetBSD: sync.c,v 1.13 2008/07/20 00:52:40 lukem Exp $ */ +/* $NetBSD: sync.c,v 1.14 2016/09/05 01:00:07 sevan Exp $ */ /* * Copyright (c) 1987, 1993 @@ -39,15 +39,13 @@ __COPYRIGHT("@(#) Copyright (c) 1987, 1993\ #if 0 static char sccsid[] = "@(#)sync.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: sync.c,v 1.13 2008/07/20 00:52:40 lukem Exp $"); +__RCSID("$NetBSD: sync.c,v 1.14 2016/09/05 01:00:07 sevan Exp $"); #endif #endif /* not lint */ #include #include -int main(int, char *[]); - /* ARGSUSED */ int main(int argc, char *argv[]) diff --git a/bin/test/test.c b/bin/test/test.c index 1f91403ee..26e756f68 100644 --- a/bin/test/test.c +++ b/bin/test/test.c @@ -1,4 +1,4 @@ -/* $NetBSD: test.c,v 1.40 2013/05/04 06:26:44 uebayasi Exp $ */ +/* $NetBSD: test.c,v 1.41 2016/09/05 01:00:07 sevan Exp $ */ /* * test(1); version 7-like -- author Erik Baalbergen @@ -12,7 +12,7 @@ #include #ifndef lint -__RCSID("$NetBSD: test.c,v 1.40 2013/05/04 06:26:44 uebayasi Exp $"); +__RCSID("$NetBSD: test.c,v 1.41 2016/09/05 01:00:07 sevan Exp $"); #endif #include @@ -206,8 +206,6 @@ int testcmd(int, char **); int testcmd(int argc, char **argv) #else -int main(int, char *[]); - int main(int argc, char *argv[]) #endif diff --git a/sbin/rcorder/rcorder.c b/sbin/rcorder/rcorder.c index 9bf404bae..7bd7c6e8e 100644 --- a/sbin/rcorder/rcorder.c +++ b/sbin/rcorder/rcorder.c @@ -1,4 +1,4 @@ -/* $NetBSD: rcorder.c,v 1.17 2013/10/19 01:09:59 christos Exp $ */ +/* $NetBSD: rcorder.c,v 1.18 2016/09/05 01:09:57 sevan Exp $ */ /* * Copyright (c) 1998, 1999 Matthew R. Green @@ -162,7 +162,6 @@ Hash_Entry *make_fake_provision(filenode *); void crunch_all_files(void); void initialize(void); void generate_ordering(void); -int main(int, char *[]); int main(int argc, char *argv[])