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/5210b09a3f17
branches: trunk
changeset: 358955:5210b09a3f17
user: sevan <sevan%NetBSD.org@localhost>
date: Tue Jan 23 22:12:52 2018 +0000
description:
drop main() prototype
diffstat:
bin/sh/main.c | 5 ++---
usr.bin/menuc/testm/main.c | 4 +---
usr.sbin/isdn/isdnd/isdnd.h | 3 +--
usr.sbin/isdn/isdntel/defs.h | 3 +--
usr.sbin/lmcconfig/lmcconfig.c | 3 +--
usr.sbin/lpr/lptest/lptest.c | 6 ++----
6 files changed, 8 insertions(+), 16 deletions(-)
diffs (128 lines):
diff -r 04c5e416d99e -r 5210b09a3f17 bin/sh/main.c
--- a/bin/sh/main.c Tue Jan 23 22:08:55 2018 +0000
+++ b/bin/sh/main.c Tue Jan 23 22:12:52 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.72 2017/07/05 20:00:27 kre Exp $ */
+/* $NetBSD: main.c,v 1.73 2018/01/23 22:12:52 sevan Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -42,7 +42,7 @@
#if 0
static char sccsid[] = "@(#)main.c 8.7 (Berkeley) 7/19/95";
#else
-__RCSID("$NetBSD: main.c,v 1.72 2017/07/05 20:00:27 kre Exp $");
+__RCSID("$NetBSD: main.c,v 1.73 2018/01/23 22:12:52 sevan Exp $");
#endif
#endif /* not lint */
@@ -90,7 +90,6 @@
#endif
STATIC void read_profile(const char *);
-int main(int, char **);
/*
* Main routine. We initialize things, parse the arguments, execute
diff -r 04c5e416d99e -r 5210b09a3f17 usr.bin/menuc/testm/main.c
--- a/usr.bin/menuc/testm/main.c Tue Jan 23 22:08:55 2018 +0000
+++ b/usr.bin/menuc/testm/main.c Tue Jan 23 22:12:52 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.6 2004/09/17 18:16:44 wrstuden Exp $ */
+/* $NetBSD: main.c,v 1.7 2018/01/23 22:12:52 sevan Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@@ -41,8 +41,6 @@
#include "menu_defs.h"
#include "msg_defs.h"
-int main(void);
-
int main(void)
{
diff -r 04c5e416d99e -r 5210b09a3f17 usr.sbin/isdn/isdnd/isdnd.h
--- a/usr.sbin/isdn/isdnd/isdnd.h Tue Jan 23 22:08:55 2018 +0000
+++ b/usr.sbin/isdn/isdnd/isdnd.h Tue Jan 23 22:12:52 2018 +0000
@@ -27,7 +27,7 @@
* i4b daemon - main header file
* -----------------------------
*
- * $Id: isdnd.h,v 1.18 2012/03/01 22:31:48 joerg Exp $
+ * $NetBSD: isdnd.h,v 1.19 2018/01/23 22:12:52 sevan Exp $
*
* $FreeBSD$
*
@@ -792,7 +792,6 @@
void init_log ( void );
void init_screen ( void );
void logit ( int what, const char *fmt, ... ) __printflike(2, 3);
-int main ( int argc, char **argv );
void msg_accounting ( msg_accounting_ind_t *mp );
void msg_alert_ind ( msg_alert_ind_t *mp );
void msg_charging_ind ( msg_charging_ind_t *mp );
diff -r 04c5e416d99e -r 5210b09a3f17 usr.sbin/isdn/isdntel/defs.h
--- a/usr.sbin/isdn/isdntel/defs.h Tue Jan 23 22:08:55 2018 +0000
+++ b/usr.sbin/isdn/isdntel/defs.h Tue Jan 23 22:12:52 2018 +0000
@@ -27,7 +27,7 @@
* isdntel - isdn4bsd telephone answering support
* ==============================================
*
- * $Id: defs.h,v 1.4 2011/08/31 13:30:44 joerg Exp $
+ * $NetBSD: defs.h,v 1.5 2018/01/23 22:12:52 sevan Exp $
*
* $FreeBSD$
*
@@ -147,7 +147,6 @@
extern void do_menu ( void );
extern int fill_list( void );
extern char *get_alias( char *number );
-extern int main ( int argc, char **argv );
extern void do_quit ( int exitval ) __dead;
extern void fatal ( const char *fmt, ... ) __dead __printflike(1, 2);
extern void error ( const char *fmt, ... ) __printflike(1, 2);
diff -r 04c5e416d99e -r 5210b09a3f17 usr.sbin/lmcconfig/lmcconfig.c
--- a/usr.sbin/lmcconfig/lmcconfig.c Tue Jan 23 22:08:55 2018 +0000
+++ b/usr.sbin/lmcconfig/lmcconfig.c Tue Jan 23 22:12:52 2018 +0000
@@ -1,5 +1,5 @@
/*-
- * $NetBSD: lmcconfig.c,v 1.11 2009/04/16 06:07:53 lukem Exp $
+ * $NetBSD: lmcconfig.c,v 1.12 2018/01/23 22:12:52 sevan Exp $
*
* First author: Michael Graff.
* Copyright (c) 1997-2000 Lan Media Corp.
@@ -163,7 +163,6 @@
u_int8_t crc8(u_int16_t *, int);
void main_cmd(int, char **);
-/* int main(int, char **); */
/* program global variables */
diff -r 04c5e416d99e -r 5210b09a3f17 usr.sbin/lpr/lptest/lptest.c
--- a/usr.sbin/lpr/lptest/lptest.c Tue Jan 23 22:08:55 2018 +0000
+++ b/usr.sbin/lpr/lptest/lptest.c Tue Jan 23 22:12:52 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lptest.c,v 1.10 2008/07/21 13:36:58 lukem Exp $ */
+/* $NetBSD: lptest.c,v 1.11 2018/01/23 22:12:53 sevan Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -37,15 +37,13 @@
#if 0
static char sccsid[] = "@(#)lptest.c 8.1 (Berkeley) 6/6/93";
#else
-__RCSID("$NetBSD: lptest.c,v 1.10 2008/07/21 13:36:58 lukem Exp $");
+__RCSID("$NetBSD: lptest.c,v 1.11 2018/01/23 22:12:53 sevan Exp $");
#endif
#endif /* not lint */
#include <stdlib.h>
#include <stdio.h>
-int main(int, char *[]);
-
/*
* lptest -- line printer test program (and other devices).
*/
Home |
Main Index |
Thread Index |
Old Index