Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src Drop main() prototype.
details: https://anonhg.NetBSD.org/src/rev/6f4b6b604850
branches: trunk
changeset: 347597:6f4b6b604850
user: sevan <sevan%NetBSD.org@localhost>
date: Mon Sep 05 01:00:07 2016 +0000
description:
Drop main() prototype.
diffstat:
bin/dd/dd.c | 6 ++----
bin/echo/echo.c | 6 ++----
bin/expr/expr.y | 6 ++----
bin/ls/main.c | 6 ++----
bin/ps/ps.c | 5 ++---
bin/sync/sync.c | 6 ++----
bin/test/test.c | 6 ++----
sbin/badsect/badsect.c | 6 ++----
sbin/modload/main.c | 5 ++---
sbin/modstat/main.c | 5 ++---
sbin/modunload/main.c | 5 ++---
sbin/mount_hfs/mount_hfs.c | 5 ++---
sbin/mount_ptyfs/mount_ptyfs.c | 5 ++---
sbin/rcorder/rcorder.c | 3 +--
14 files changed, 27 insertions(+), 48 deletions(-)
diffs (truncated from 361 to 300 lines):
diff -r 679e4f9e0ca2 -r 6f4b6b604850 bin/dd/dd.c
--- a/bin/dd/dd.c Mon Sep 05 00:40:28 2016 +0000
+++ b/bin/dd/dd.c Mon Sep 05 01:00:07 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dd.c,v 1.50 2015/03/18 13:23:49 manu Exp $ */
+/* $NetBSD: dd.c,v 1.51 2016/09/05 01:00:07 sevan Exp $ */
/*-
* Copyright (c) 1991, 1993, 1994
@@ -43,7 +43,7 @@
#if 0
static char sccsid[] = "@(#)dd.c 8.5 (Berkeley) 4/2/94";
#else
-__RCSID("$NetBSD: dd.c,v 1.50 2015/03/18 13:23:49 manu Exp $");
+__RCSID("$NetBSD: dd.c,v 1.51 2016/09/05 01:00:07 sevan Exp $");
#endif
#endif /* not lint */
@@ -73,8 +73,6 @@
static void redup_clean_fd(IO *);
static void setup(void);
-int main(int, char *[]);
-
IO in, out; /* input/output state */
STAT st; /* statistics */
void (*cfunc)(void); /* conversion function */
diff -r 679e4f9e0ca2 -r 6f4b6b604850 bin/echo/echo.c
--- a/bin/echo/echo.c Mon Sep 05 00:40:28 2016 +0000
+++ b/bin/echo/echo.c Mon Sep 05 01:00:07 2016 +0000
@@ -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 @@
#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 @@
#include <stdlib.h>
#include <string.h>
-int main(int, char *[]);
-
/* ARGSUSED */
int
main(int argc, char *argv[])
diff -r 679e4f9e0ca2 -r 6f4b6b604850 bin/expr/expr.y
--- a/bin/expr/expr.y Mon Sep 05 00:40:28 2016 +0000
+++ b/bin/expr/expr.y Mon Sep 05 01:00:07 2016 +0000
@@ -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 <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>
@@ -55,8 +55,6 @@
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 -r 679e4f9e0ca2 -r 6f4b6b604850 bin/ls/main.c
--- a/bin/ls/main.c Mon Sep 05 00:40:28 2016 +0000
+++ b/bin/ls/main.c Mon Sep 05 01:00:07 2016 +0000
@@ -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 <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>
@@ -41,8 +41,6 @@
#include "ls.h"
#include "extern.h"
-int main(int, char *[]);
-
int
main(int argc, char *argv[])
{
diff -r 679e4f9e0ca2 -r 6f4b6b604850 bin/ps/ps.c
--- a/bin/ps/ps.c Mon Sep 05 00:40:28 2016 +0000
+++ b/bin/ps/ps.c Mon Sep 05 01:00:07 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ps.c,v 1.83 2015/06/16 22:31:08 christos Exp $ */
+/* $NetBSD: ps.c,v 1.84 2016/09/05 01:00:07 sevan Exp $ */
/*
* Copyright (c) 2000-2008 The NetBSD Foundation, Inc.
@@ -68,7 +68,7 @@
#if 0
static char sccsid[] = "@(#)ps.c 8.4 (Berkeley) 4/2/94";
#else
-__RCSID("$NetBSD: ps.c,v 1.83 2015/06/16 22:31:08 christos Exp $");
+__RCSID("$NetBSD: ps.c,v 1.84 2016/09/05 01:00:07 sevan Exp $");
#endif
#endif /* not lint */
@@ -129,7 +129,6 @@
static void scanvars(void);
__dead static void usage(void);
static int parsenum(const char *, const char *);
-int main(int, char *[]);
char dfmt[] = "pid tt state time command";
char jfmt[] = "user pid ppid pgid sess jobc state tt time command";
diff -r 679e4f9e0ca2 -r 6f4b6b604850 bin/sync/sync.c
--- a/bin/sync/sync.c Mon Sep 05 00:40:28 2016 +0000
+++ b/bin/sync/sync.c Mon Sep 05 01:00:07 2016 +0000
@@ -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 @@
#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[])
diff -r 679e4f9e0ca2 -r 6f4b6b604850 bin/test/test.c
--- a/bin/test/test.c Mon Sep 05 00:40:28 2016 +0000
+++ b/bin/test/test.c Mon Sep 05 01:00:07 2016 +0000
@@ -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 <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>
@@ -206,8 +206,6 @@
int
testcmd(int argc, char **argv)
#else
-int main(int, char *[]);
-
int
main(int argc, char *argv[])
#endif
diff -r 679e4f9e0ca2 -r 6f4b6b604850 sbin/badsect/badsect.c
--- a/sbin/badsect/badsect.c Mon Sep 05 00:40:28 2016 +0000
+++ b/sbin/badsect/badsect.c Mon Sep 05 01:00:07 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: badsect.c,v 1.33 2013/06/23 02:06:04 dholland Exp $ */
+/* $NetBSD: badsect.c,v 1.34 2016/09/05 01:09:57 sevan Exp $ */
/*
* Copyright (c) 1981, 1983, 1993
@@ -39,7 +39,7 @@
#if 0
static char sccsid[] = "@(#)badsect.c 8.2 (Berkeley) 5/4/95";
#else
-__RCSID("$NetBSD: badsect.c,v 1.33 2013/06/23 02:06:04 dholland Exp $");
+__RCSID("$NetBSD: badsect.c,v 1.34 2016/09/05 01:09:57 sevan Exp $");
#endif
#endif /* not lint */
@@ -90,8 +90,6 @@
static void rdfs(off_t, size_t, void *);
static int chkuse(daddr_t, int);
-int main(int, char *[]);
-
static const off_t sblock_try[] = SBLOCKSEARCH;
int
diff -r 679e4f9e0ca2 -r 6f4b6b604850 sbin/modload/main.c
--- a/sbin/modload/main.c Mon Sep 05 00:40:28 2016 +0000
+++ b/sbin/modload/main.c Mon Sep 05 01:00:07 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.16 2016/05/06 00:24:45 khorben Exp $ */
+/* $NetBSD: main.c,v 1.17 2016/09/05 01:09:57 sevan Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -28,7 +28,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: main.c,v 1.16 2016/05/06 00:24:45 khorben Exp $");
+__RCSID("$NetBSD: main.c,v 1.17 2016/09/05 01:09:57 sevan Exp $");
#endif /* !lint */
#include <sys/module.h>
@@ -46,7 +46,6 @@
#include "prog_ops.h"
-int main(int, char **);
static void parse_bool_param(prop_dictionary_t, const char *,
const char *);
static void parse_int_param(prop_dictionary_t, const char *,
diff -r 679e4f9e0ca2 -r 6f4b6b604850 sbin/modstat/main.c
--- a/sbin/modstat/main.c Mon Sep 05 00:40:28 2016 +0000
+++ b/sbin/modstat/main.c Mon Sep 05 01:00:07 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.22 2016/08/03 23:55:47 pgoyette Exp $ */
+/* $NetBSD: main.c,v 1.23 2016/09/05 01:09:57 sevan Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -28,7 +28,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: main.c,v 1.22 2016/08/03 23:55:47 pgoyette Exp $");
+__RCSID("$NetBSD: main.c,v 1.23 2016/09/05 01:09:57 sevan Exp $");
#endif /* !lint */
#include <sys/module.h>
@@ -45,7 +45,6 @@
#include "prog_ops.h"
-int main(int, char **);
static void usage(void) __dead;
static int modstatcmp(const void *, const void *);
diff -r 679e4f9e0ca2 -r 6f4b6b604850 sbin/modunload/main.c
--- a/sbin/modunload/main.c Mon Sep 05 00:40:28 2016 +0000
+++ b/sbin/modunload/main.c Mon Sep 05 01:00:07 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.5 2016/05/06 00:24:45 khorben Exp $ */
+/* $NetBSD: main.c,v 1.6 2016/09/05 01:09:57 sevan Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -28,7 +28,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: main.c,v 1.5 2016/05/06 00:24:45 khorben Exp $");
+__RCSID("$NetBSD: main.c,v 1.6 2016/09/05 01:09:57 sevan Exp $");
#endif /* !lint */
#include <sys/module.h>
@@ -41,7 +41,6 @@
#include "prog_ops.h"
-int main(int, char **);
static void usage(void) __dead;
int
diff -r 679e4f9e0ca2 -r 6f4b6b604850 sbin/mount_hfs/mount_hfs.c
--- a/sbin/mount_hfs/mount_hfs.c Mon Sep 05 00:40:28 2016 +0000
+++ b/sbin/mount_hfs/mount_hfs.c Mon Sep 05 01:00:07 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mount_hfs.c,v 1.9 2011/08/29 14:35:01 joerg Exp $ */
+/* $NetBSD: mount_hfs.c,v 1.10 2016/09/05 01:09:57 sevan Exp $ */
/*-
Home |
Main Index |
Thread Index |
Old Index