Skip to content

Commit

Permalink
Drop main() prototype.
Browse files Browse the repository at this point in the history
Sync with NetBSD-8

closes Stichting-MINIX-Research-Foundation#269

Change-Id: I4ce3bcbc1a1dc71745fe77bd581d07aeafc2f01b
  • Loading branch information
sevan authored and sambuc committed Nov 13, 2018
1 parent 2529152 commit 02efe53
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 22 deletions.
6 changes: 2 additions & 4 deletions bin/echo/echo.c
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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 */

Expand All @@ -49,8 +49,6 @@ __RCSID("$NetBSD: echo.c,v 1.18 2008/09/18 05:42:08 dholland Exp $");
#include <stdlib.h>
#include <string.h>

int main(int, char *[]);

/* ARGSUSED */
int
main(int argc, char *argv[])
Expand Down
6 changes: 2 additions & 4 deletions bin/expr/expr.y
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -32,7 +32,7 @@
%{
#include <sys/cdefs.h>
#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 <sys/types.h>
Expand All @@ -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 *

%}
Expand Down
6 changes: 2 additions & 4 deletions bin/ls/main.c
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -32,7 +32,7 @@
#include <sys/cdefs.h>

#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 <sys/types.h>
Expand All @@ -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[])
{
Expand Down
6 changes: 2 additions & 4 deletions bin/sync/sync.c
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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 <stdlib.h>
#include <unistd.h>

int main(int, char *[]);

/* ARGSUSED */
int
main(int argc, char *argv[])
Expand Down
6 changes: 2 additions & 4 deletions bin/test/test.c
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -12,7 +12,7 @@

#include <sys/cdefs.h>
#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 <sys/stat.h>
Expand Down Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions sbin/rcorder/rcorder.c
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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[])
Expand Down

0 comments on commit 02efe53

Please sign in to comment.