Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin Drop main() prototype.
details: https://anonhg.NetBSD.org/src/rev/75cce14f4740
branches: trunk
changeset: 353418:75cce14f4740
user: sevan <sevan%NetBSD.org@localhost>
date: Thu May 04 16:26:09 2017 +0000
description:
Drop main() prototype.
diffstat:
usr.sbin/bootp/bootpd/bootpd.c | 3 +--
usr.sbin/bootp/bootpef/bootpef.c | 3 +--
usr.sbin/bootp/bootpgw/bootpgw.c | 4 +---
usr.sbin/bootp/bootptest/bootptest.c | 5 ++---
usr.sbin/lpr/lpc/lpc.c | 5 ++---
usr.sbin/lpr/lpd/lpd.c | 5 ++---
usr.sbin/pstat/pstat.c | 5 ++---
usr.sbin/pwd_mkdb/pwd_mkdb.c | 5 ++---
usr.sbin/rbootd/rbootd.c | 6 ++----
usr.sbin/rdate/rdate.c | 5 ++---
usr.sbin/rpc.yppasswdd/rpc.yppasswdd.c | 5 ++---
usr.sbin/srtconfig/srtconfig.c | 3 +--
usr.sbin/sunlabel/sunlabel.c | 6 ++----
usr.sbin/sup/source/supcmain.c | 3 +--
usr.sbin/sup/source/supfilesrv.c | 3 +--
usr.sbin/sup/source/supscan.c | 3 +--
usr.sbin/sysinst/main.c | 3 +--
usr.sbin/wsconscfg/wsconscfg.c | 3 +--
usr.sbin/ypserv/yptest/yptest.c | 5 ++---
usr.sbin/ypserv/ypxfr/ypxfr.c | 5 ++---
20 files changed, 31 insertions(+), 54 deletions(-)
diffs (truncated from 458 to 300 lines):
diff -r 3b99f12d3027 -r 75cce14f4740 usr.sbin/bootp/bootpd/bootpd.c
--- a/usr.sbin/bootp/bootpd/bootpd.c Thu May 04 14:21:01 2017 +0000
+++ b/usr.sbin/bootp/bootpd/bootpd.c Thu May 04 16:26:09 2017 +0000
@@ -22,7 +22,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: bootpd.c,v 1.26 2014/03/29 22:45:31 joerg Exp $");
+__RCSID("$NetBSD: bootpd.c,v 1.27 2017/05/04 16:26:09 sevan Exp $");
#endif
/*
@@ -115,7 +115,6 @@
PRIVATE void handle_request(void);
PRIVATE void sendreply(int forward, int32 dest_override);
__dead PRIVATE void usage(void);
-int main(int, char **);
/*
* IP port numbers for client and server obtained from /etc/services
diff -r 3b99f12d3027 -r 75cce14f4740 usr.sbin/bootp/bootpef/bootpef.c
--- a/usr.sbin/bootp/bootpef/bootpef.c Thu May 04 14:21:01 2017 +0000
+++ b/usr.sbin/bootp/bootpef/bootpef.c Thu May 04 16:26:09 2017 +0000
@@ -22,7 +22,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: bootpef.c,v 1.10 2011/08/29 20:38:54 joerg Exp $");
+__RCSID("$NetBSD: bootpef.c,v 1.11 2017/05/04 16:26:09 sevan Exp $");
#endif
@@ -83,7 +83,6 @@
static void mktagfile(struct host *);
__dead static void usage(void);
-int main(int, char **);
/*
diff -r 3b99f12d3027 -r 75cce14f4740 usr.sbin/bootp/bootpgw/bootpgw.c
--- a/usr.sbin/bootp/bootpgw/bootpgw.c Thu May 04 14:21:01 2017 +0000
+++ b/usr.sbin/bootp/bootpgw/bootpgw.c Thu May 04 16:26:09 2017 +0000
@@ -27,7 +27,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: bootpgw.c,v 1.15 2011/08/29 20:38:55 joerg Exp $");
+__RCSID("$NetBSD: bootpgw.c,v 1.16 2017/05/04 16:26:09 sevan Exp $");
#endif
/*
@@ -87,7 +87,6 @@
__dead static void usage(void);
static void handle_reply(void);
static void handle_request(void);
-int main(int, char **);
/*
* IP port numbers for client and server obtained from /etc/services
@@ -126,7 +125,6 @@
char myhostname[MAXHOSTNAMELEN + 1];
struct in_addr my_ip_addr;
-
diff -r 3b99f12d3027 -r 75cce14f4740 usr.sbin/bootp/bootptest/bootptest.c
--- a/usr.sbin/bootp/bootptest/bootptest.c Thu May 04 14:21:01 2017 +0000
+++ b/usr.sbin/bootp/bootptest/bootptest.c Thu May 04 16:26:09 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bootptest.c,v 1.20 2011/08/21 08:59:50 christos Exp $ */
+/* $NetBSD: bootptest.c,v 1.21 2017/05/04 16:26:09 sevan Exp $ */
/*
* bootptest.c - Test out a bootp server.
@@ -36,7 +36,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: bootptest.c,v 1.20 2011/08/21 08:59:50 christos Exp $");
+__RCSID("$NetBSD: bootptest.c,v 1.21 2017/05/04 16:26:09 sevan Exp $");
#endif
static const char usage[] =
@@ -121,7 +121,6 @@
extern int getether(char *, char *);
-int main(int, char **);
void send_request(int);
/*
diff -r 3b99f12d3027 -r 75cce14f4740 usr.sbin/lpr/lpc/lpc.c
--- a/usr.sbin/lpr/lpc/lpc.c Thu May 04 14:21:01 2017 +0000
+++ b/usr.sbin/lpr/lpc/lpc.c Thu May 04 16:26:09 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lpc.c,v 1.26 2011/08/30 19:27:37 joerg Exp $ */
+/* $NetBSD: lpc.c,v 1.27 2017/05/04 16:26:09 sevan Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)lpc.c 8.3 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: lpc.c,v 1.26 2011/08/30 19:27:37 joerg Exp $");
+__RCSID("$NetBSD: lpc.c,v 1.27 2017/05/04 16:26:09 sevan Exp $");
#endif
#endif /* not lint */
@@ -87,7 +87,6 @@
__dead static void intr(int);
static void makeargv(void);
static int ingroup(const char *);
-int main(int, char *p[]);
const char *prompt(void);
static int parse(char *, char *p[], int);
diff -r 3b99f12d3027 -r 75cce14f4740 usr.sbin/lpr/lpd/lpd.c
--- a/usr.sbin/lpr/lpd/lpd.c Thu May 04 14:21:01 2017 +0000
+++ b/usr.sbin/lpr/lpd/lpd.c Thu May 04 16:26:09 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lpd.c,v 1.57 2011/11/09 12:45:58 is Exp $ */
+/* $NetBSD: lpd.c,v 1.58 2017/05/04 16:26:09 sevan Exp $ */
/*
* Copyright (c) 1983, 1993, 1994
@@ -41,7 +41,7 @@
#if 0
static char sccsid[] = "@(#)lpd.c 8.7 (Berkeley) 5/10/95";
#else
-__RCSID("$NetBSD: lpd.c,v 1.57 2011/11/09 12:45:58 is Exp $");
+__RCSID("$NetBSD: lpd.c,v 1.58 2017/05/04 16:26:09 sevan Exp $");
#endif
#endif /* not lint */
@@ -125,7 +125,6 @@
int blist_size;
int blist_addrs;
-int main(int, char **);
static void reapchild(int);
__dead static void mcleanup(int);
static void doit(void);
diff -r 3b99f12d3027 -r 75cce14f4740 usr.sbin/pstat/pstat.c
--- a/usr.sbin/pstat/pstat.c Thu May 04 14:21:01 2017 +0000
+++ b/usr.sbin/pstat/pstat.c Thu May 04 16:26:09 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pstat.c,v 1.127 2017/04/17 08:29:58 hannken Exp $ */
+/* $NetBSD: pstat.c,v 1.128 2017/05/04 16:26:09 sevan Exp $ */
/*-
* Copyright (c) 1980, 1991, 1993, 1994
@@ -39,7 +39,7 @@
#if 0
static char sccsid[] = "@(#)pstat.c 8.16 (Berkeley) 5/9/95";
#else
-__RCSID("$NetBSD: pstat.c,v 1.127 2017/04/17 08:29:58 hannken Exp $");
+__RCSID("$NetBSD: pstat.c,v 1.128 2017/05/04 16:26:09 sevan Exp $");
#endif
#endif /* not lint */
@@ -174,7 +174,6 @@
void layer_header(void);
int layer_print(struct vnode *, int);
char * loadvnodes(int *);
-int main(int, char **);
void mount_print(struct mount *);
void nfs_header(void);
int nfs_print(struct vnode *, int);
diff -r 3b99f12d3027 -r 75cce14f4740 usr.sbin/pwd_mkdb/pwd_mkdb.c
--- a/usr.sbin/pwd_mkdb/pwd_mkdb.c Thu May 04 14:21:01 2017 +0000
+++ b/usr.sbin/pwd_mkdb/pwd_mkdb.c Thu May 04 16:26:09 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pwd_mkdb.c,v 1.57 2014/01/26 01:57:04 christos Exp $ */
+/* $NetBSD: pwd_mkdb.c,v 1.58 2017/05/04 16:26:09 sevan Exp $ */
/*
* Copyright (c) 2000, 2009 The NetBSD Foundation, Inc.
@@ -90,7 +90,7 @@
The NetBSD Foundation, Inc. All rights reserved.\
Copyright (c) 1991, 1993, 1994\
The Regents of the University of California. All rights reserved.");
-__RCSID("$NetBSD: pwd_mkdb.c,v 1.57 2014/01/26 01:57:04 christos Exp $");
+__RCSID("$NetBSD: pwd_mkdb.c,v 1.58 2017/05/04 16:26:09 sevan Exp $");
#endif /* not lint */
#if HAVE_NBTOOL_CONFIG_H
@@ -178,7 +178,6 @@
int getdbent(struct pwddb *, int, void *, struct passwd **);
void inconsistency(void) __dead;
void install(const char *, const char *);
-int main(int, char **);
void putdbents(struct pwddb *, struct passwd *, const char *, int, int,
u_int, u_int);
void putyptoken(struct pwddb *);
diff -r 3b99f12d3027 -r 75cce14f4740 usr.sbin/rbootd/rbootd.c
--- a/usr.sbin/rbootd/rbootd.c Thu May 04 14:21:01 2017 +0000
+++ b/usr.sbin/rbootd/rbootd.c Thu May 04 16:26:09 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rbootd.c,v 1.23 2011/05/24 13:19:55 joerg Exp $ */
+/* $NetBSD: rbootd.c,v 1.24 2017/05/04 16:26:09 sevan Exp $ */
/*
* Copyright (c) 1988, 1992 The University of Utah and the Center
@@ -52,7 +52,7 @@
#if 0
static char sccsid[] = "@(#)rbootd.c 8.1 (Berkeley) 6/4/93";
#else
-__RCSID("$NetBSD: rbootd.c,v 1.23 2011/05/24 13:19:55 joerg Exp $");
+__RCSID("$NetBSD: rbootd.c,v 1.24 2017/05/04 16:26:09 sevan Exp $");
#endif
#endif /* not lint */
@@ -71,8 +71,6 @@
#include <util.h>
#include "defs.h"
-int main (int, char *[]);
-
int
main(int argc, char *argv[])
{
diff -r 3b99f12d3027 -r 75cce14f4740 usr.sbin/rdate/rdate.c
--- a/usr.sbin/rdate/rdate.c Thu May 04 14:21:01 2017 +0000
+++ b/usr.sbin/rdate/rdate.c Thu May 04 16:26:09 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rdate.c,v 1.19 2009/10/21 01:07:47 snj Exp $ */
+/* $NetBSD: rdate.c,v 1.20 2017/05/04 16:26:09 sevan Exp $ */
/*
* Copyright (c) 1994 Christos Zoulas
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: rdate.c,v 1.19 2009/10/21 01:07:47 snj Exp $");
+__RCSID("$NetBSD: rdate.c,v 1.20 2017/05/04 16:26:09 sevan Exp $");
#endif /* lint */
#include <sys/types.h>
@@ -54,7 +54,6 @@
/* seconds from midnight Jan 1900 - 1970 */
#define DIFFERENCE 2208988800ULL
- int main(int, char **);
static void usage(void);
static void
diff -r 3b99f12d3027 -r 75cce14f4740 usr.sbin/rpc.yppasswdd/rpc.yppasswdd.c
--- a/usr.sbin/rpc.yppasswdd/rpc.yppasswdd.c Thu May 04 14:21:01 2017 +0000
+++ b/usr.sbin/rpc.yppasswdd/rpc.yppasswdd.c Thu May 04 16:26:09 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rpc.yppasswdd.c,v 1.17 2011/08/31 16:24:59 plunky Exp $ */
+/* $NetBSD: rpc.yppasswdd.c,v 1.18 2017/05/04 16:26:09 sevan Exp $ */
/*
* Copyright (c) 1994 Mats O Jansson <moj%stacken.kth.se@localhost>
@@ -28,7 +28,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: rpc.yppasswdd.c,v 1.17 2011/08/31 16:24:59 plunky Exp $");
+__RCSID("$NetBSD: rpc.yppasswdd.c,v 1.18 2017/05/04 16:26:09 sevan Exp $");
#endif /* not lint */
#include <sys/types.h>
@@ -53,7 +53,6 @@
int noshell, nogecos, nopw;
char make_arg[_POSIX2_LINE_MAX] = "make";
-int main(int, char *[]);
void yppasswddprog_1(struct svc_req *, SVCXPRT *);
__dead static void usage(void);
diff -r 3b99f12d3027 -r 75cce14f4740 usr.sbin/srtconfig/srtconfig.c
--- a/usr.sbin/srtconfig/srtconfig.c Thu May 04 14:21:01 2017 +0000
+++ b/usr.sbin/srtconfig/srtconfig.c Thu May 04 16:26:09 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: srtconfig.c,v 1.3 2009/04/18 14:02:42 lukem Exp $ */
+/* $NetBSD: srtconfig.c,v 1.4 2017/05/04 16:26:09 sevan Exp $ */
/* This file is in the public domain. */
#include <stdio.h>
@@ -278,7 +278,6 @@
}
}
-int main(int, char **);
int main(int ac, char **av)
{
handleargs(ac,av);
diff -r 3b99f12d3027 -r 75cce14f4740 usr.sbin/sunlabel/sunlabel.c
--- a/usr.sbin/sunlabel/sunlabel.c Thu May 04 14:21:01 2017 +0000
+++ b/usr.sbin/sunlabel/sunlabel.c Thu May 04 16:26:09 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sunlabel.c,v 1.24 2013/10/19 17:16:38 christos Exp $ */
+/* $NetBSD: sunlabel.c,v 1.25 2017/05/04 16:29:08 sevan Exp $ */
Home |
Main Index |
Thread Index |
Old Index