Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin Drop main() prototype.
details: https://anonhg.NetBSD.org/src/rev/679e4f9e0ca2
branches: trunk
changeset: 347596:679e4f9e0ca2
user: sevan <sevan%NetBSD.org@localhost>
date: Mon Sep 05 00:40:28 2016 +0000
description:
Drop main() prototype.
diffstat:
usr.bin/asa/asa.c | 5 ++---
usr.bin/config/main.c | 5 ++---
usr.bin/eject/eject.c | 5 ++---
usr.bin/expand/expand.c | 5 ++---
usr.bin/fdformat/fdformat.c | 6 ++----
usr.bin/finger/finger.c | 5 ++---
usr.bin/hesinfo/hesinfo.c | 6 ++----
usr.bin/indent/indent.c | 6 ++----
usr.bin/kdump/kdump.c | 5 ++---
usr.bin/locate/bigram/locate.bigram.c | 5 ++---
usr.bin/locate/locate/locate.c | 7 ++-----
usr.bin/lock/lock.c | 6 ++----
usr.bin/mail/extern.h | 5 ++---
usr.bin/make/nonints.h | 3 +--
usr.bin/mkstr/mkstr.c | 5 ++---
usr.bin/msgs/msgs.c | 5 ++---
usr.bin/rup/rup.c | 5 ++---
usr.bin/seq/seq.c | 3 +--
usr.bin/soelim/soelim.c | 6 ++----
usr.bin/tee/tee.c | 5 ++---
usr.bin/telnet/main.c | 6 ++----
usr.bin/tip/tip.c | 5 ++---
usr.bin/users/users.c | 6 ++----
usr.bin/vgrind/vfontedpr.c | 6 ++----
usr.bin/vmstat/vmstat.c | 5 ++---
usr.bin/xlint/lint2/main2.c | 6 ++----
usr.bin/xlint/xlint/xlint.c | 6 ++----
27 files changed, 52 insertions(+), 91 deletions(-)
diffs (truncated from 699 to 300 lines):
diff -r 2e6bb036d73b -r 679e4f9e0ca2 usr.bin/asa/asa.c
--- a/usr.bin/asa/asa.c Sun Sep 04 18:57:39 2016 +0000
+++ b/usr.bin/asa/asa.c Mon Sep 05 00:40:28 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: asa.c,v 1.16 2007/06/24 23:23:10 christos Exp $ */
+/* $NetBSD: asa.c,v 1.17 2016/09/05 00:40:28 sevan Exp $ */
/*
* Copyright (c) 1993,94 Winning Strategies, Inc.
@@ -32,7 +32,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: asa.c,v 1.16 2007/06/24 23:23:10 christos Exp $");
+__RCSID("$NetBSD: asa.c,v 1.17 2016/09/05 00:40:28 sevan Exp $");
#endif
#include <err.h>
@@ -40,7 +40,6 @@
#include <stdlib.h>
static void asa(FILE *);
-int main(int, char *[]);
int
/*ARGSUSED*/
diff -r 2e6bb036d73b -r 679e4f9e0ca2 usr.bin/config/main.c
--- a/usr.bin/config/main.c Sun Sep 04 18:57:39 2016 +0000
+++ b/usr.bin/config/main.c Mon Sep 05 00:40:28 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.90 2016/08/07 10:37:24 christos Exp $ */
+/* $NetBSD: main.c,v 1.91 2016/09/05 00:40:28 sevan Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -45,7 +45,7 @@
#endif
#include <sys/cdefs.h>
-__RCSID("$NetBSD: main.c,v 1.90 2016/08/07 10:37:24 christos Exp $");
+__RCSID("$NetBSD: main.c,v 1.91 2016/09/05 00:40:28 sevan Exp $");
#ifndef MAKE_BOOTSTRAP
#include <sys/cdefs.h>
@@ -122,7 +122,6 @@
struct nvlist ***, const char *, const char *, int);
static int crosscheck(void);
static int badstar(void);
- int main(int, char **);
static int mkallsubdirs(void);
static int mksymlinks(void);
static int mkident(void);
diff -r 2e6bb036d73b -r 679e4f9e0ca2 usr.bin/eject/eject.c
--- a/usr.bin/eject/eject.c Sun Sep 04 18:57:39 2016 +0000
+++ b/usr.bin/eject/eject.c Mon Sep 05 00:40:28 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: eject.c,v 1.27 2012/07/14 20:41:27 abs Exp $ */
+/* $NetBSD: eject.c,v 1.28 2016/09/05 00:40:28 sevan Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -36,7 +36,7 @@
#endif /* not lint */
#ifndef lint
-__RCSID("$NetBSD: eject.c,v 1.27 2012/07/14 20:41:27 abs Exp $");
+__RCSID("$NetBSD: eject.c,v 1.28 2016/09/05 00:40:28 sevan Exp $");
#endif /* not lint */
#include <sys/types.h>
@@ -115,7 +115,6 @@
int verbose_f = 0;
int umount_f = 1;
-int main(int, char *[]);
__dead static void usage(void);
static char *nick2dev(const char *);
static char *nick2rdev(const char *);
diff -r 2e6bb036d73b -r 679e4f9e0ca2 usr.bin/expand/expand.c
--- a/usr.bin/expand/expand.c Sun Sep 04 18:57:39 2016 +0000
+++ b/usr.bin/expand/expand.c Mon Sep 05 00:40:28 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: expand.c,v 1.13 2009/04/12 02:51:36 lukem Exp $ */
+/* $NetBSD: expand.c,v 1.14 2016/09/05 00:40:28 sevan Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -39,7 +39,7 @@
#if 0
static char sccsid[] = "@(#)expand.c 8.1 (Berkeley) 6/9/93";
#endif
-__RCSID("$NetBSD: expand.c,v 1.13 2009/04/12 02:51:36 lukem Exp $");
+__RCSID("$NetBSD: expand.c,v 1.14 2016/09/05 00:40:28 sevan Exp $");
#endif /* not lint */
#include <stdio.h>
@@ -55,7 +55,6 @@
size_t tabstops[100];
static void getstops(const char *);
- int main(int, char **);
static void usage(void) __dead;
int
diff -r 2e6bb036d73b -r 679e4f9e0ca2 usr.bin/fdformat/fdformat.c
--- a/usr.bin/fdformat/fdformat.c Sun Sep 04 18:57:39 2016 +0000
+++ b/usr.bin/fdformat/fdformat.c Mon Sep 05 00:40:28 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fdformat.c,v 1.16 2009/04/12 02:53:56 lukem Exp $ */
+/* $NetBSD: fdformat.c,v 1.17 2016/09/05 00:40:28 sevan Exp $ */
/*-
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@@ -36,7 +36,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: fdformat.c,v 1.16 2009/04/12 02:53:56 lukem Exp $");
+__RCSID("$NetBSD: fdformat.c,v 1.17 2016/09/05 00:40:28 sevan Exp $");
#endif
#include <sys/types.h>
@@ -70,8 +70,6 @@
static void usage(void) __dead;
static int verify_track(int, int, int, struct fdformat_parms *, char *);
-int main(int, char **);
-
static int
confirm(int def)
{
diff -r 2e6bb036d73b -r 679e4f9e0ca2 usr.bin/finger/finger.c
--- a/usr.bin/finger/finger.c Sun Sep 04 18:57:39 2016 +0000
+++ b/usr.bin/finger/finger.c Mon Sep 05 00:40:28 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: finger.c,v 1.29 2009/04/12 06:18:54 lukem Exp $ */
+/* $NetBSD: finger.c,v 1.30 2016/09/05 00:40:28 sevan Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -52,7 +52,7 @@
#if 0
static char sccsid[] = "@(#)finger.c 8.5 (Berkeley) 5/4/95";
#else
-__RCSID("$NetBSD: finger.c,v 1.29 2009/04/12 06:18:54 lukem Exp $");
+__RCSID("$NetBSD: finger.c,v 1.30 2016/09/05 00:40:28 sevan Exp $");
#endif
#endif /* not lint */
@@ -99,7 +99,6 @@
static void loginlist(void);
static void userlist(int, char **);
-int main(int, char **);
int
main(int argc, char **argv)
diff -r 2e6bb036d73b -r 679e4f9e0ca2 usr.bin/hesinfo/hesinfo.c
--- a/usr.bin/hesinfo/hesinfo.c Sun Sep 04 18:57:39 2016 +0000
+++ b/usr.bin/hesinfo/hesinfo.c Mon Sep 05 00:40:28 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: hesinfo.c,v 1.4 2012/03/20 20:34:57 matt Exp $ */
+/* $NetBSD: hesinfo.c,v 1.5 2016/09/05 00:40:28 sevan Exp $ */
/* Copyright 1988, 1996 by the Massachusetts Institute of Technology.
*
@@ -23,7 +23,7 @@
#if 0
static char rcsid[] = "#Id: hesinfo.c,v 1.8 1996/12/08 21:29:54 ghudson Exp #";
#else
-__RCSID("$NetBSD: hesinfo.c,v 1.4 2012/03/20 20:34:57 matt Exp $");
+__RCSID("$NetBSD: hesinfo.c,v 1.5 2016/09/05 00:40:28 sevan Exp $");
#endif
#endif /* not lint */
@@ -35,8 +35,6 @@
#include <string.h>
#include <unistd.h>
-int main(int, char **);
-
int
main(int argc, char **argv)
{
diff -r 2e6bb036d73b -r 679e4f9e0ca2 usr.bin/indent/indent.c
--- a/usr.bin/indent/indent.c Sun Sep 04 18:57:39 2016 +0000
+++ b/usr.bin/indent/indent.c Mon Sep 05 00:40:28 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: indent.c,v 1.22 2016/02/25 13:23:27 ginsbach Exp $ */
+/* $NetBSD: indent.c,v 1.23 2016/09/05 00:40:29 sevan Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -75,7 +75,7 @@
#if 0
static char sccsid[] = "@(#)indent.c 5.17 (Berkeley) 6/7/93";
#else
-__RCSID("$NetBSD: indent.c,v 1.22 2016/02/25 13:23:27 ginsbach Exp $");
+__RCSID("$NetBSD: indent.c,v 1.23 2016/09/05 00:40:29 sevan Exp $");
#endif
#endif /* not lint */
@@ -100,8 +100,6 @@
* output file */
char bakfile[MAXPATHLEN] = "";
-int main(int, char **);
-
int
main(int argc, char **argv)
{
diff -r 2e6bb036d73b -r 679e4f9e0ca2 usr.bin/kdump/kdump.c
--- a/usr.bin/kdump/kdump.c Sun Sep 04 18:57:39 2016 +0000
+++ b/usr.bin/kdump/kdump.c Mon Sep 05 00:40:28 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kdump.c,v 1.124 2016/06/01 00:47:16 christos Exp $ */
+/* $NetBSD: kdump.c,v 1.125 2016/09/05 00:40:29 sevan Exp $ */
/*-
* Copyright (c) 1988, 1993
@@ -39,7 +39,7 @@
#if 0
static char sccsid[] = "@(#)kdump.c 8.4 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: kdump.c,v 1.124 2016/06/01 00:47:16 christos Exp $");
+__RCSID("$NetBSD: kdump.c,v 1.125 2016/09/05 00:40:29 sevan Exp $");
#endif
#endif /* not lint */
@@ -102,7 +102,6 @@
"PTRACE_SYSCALL",
};
-int main(int, char **);
static int fread_tail(void *, size_t, size_t);
static int dumpheader(struct ktr_header *);
static void output_long(u_long, int);
diff -r 2e6bb036d73b -r 679e4f9e0ca2 usr.bin/locate/bigram/locate.bigram.c
--- a/usr.bin/locate/bigram/locate.bigram.c Sun Sep 04 18:57:39 2016 +0000
+++ b/usr.bin/locate/bigram/locate.bigram.c Mon Sep 05 00:40:28 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: locate.bigram.c,v 1.12 2009/11/17 18:31:12 drochner Exp $ */
+/* $NetBSD: locate.bigram.c,v 1.13 2016/09/05 00:40:29 sevan Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -42,7 +42,7 @@
#if 0
static char sccsid[] = "@(#)locate.bigram.c 8.2 (Berkeley) 4/28/95";
#endif
-__RCSID("$NetBSD: locate.bigram.c,v 1.12 2009/11/17 18:31:12 drochner Exp $");
+__RCSID("$NetBSD: locate.bigram.c,v 1.13 2016/09/05 00:40:29 sevan Exp $");
#endif /* not lint */
/*
@@ -57,7 +57,6 @@
#include <string.h>
#include <sys/param.h> /* for MAXPATHLEN */
-int main(int, char **);
static int compare_bigrams(const void *, const void *);
static void add_bigram(u_char, u_char);
diff -r 2e6bb036d73b -r 679e4f9e0ca2 usr.bin/locate/locate/locate.c
--- a/usr.bin/locate/locate/locate.c Sun Sep 04 18:57:39 2016 +0000
+++ b/usr.bin/locate/locate/locate.c Mon Sep 05 00:40:28 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: locate.c,v 1.17 2009/04/12 13:53:02 lukem Exp $ */
+/* $NetBSD: locate.c,v 1.18 2016/09/05 00:40:29 sevan Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -42,7 +42,7 @@
#if 0
static char sccsid[] = "@(#)locate.c 8.1 (Berkeley) 6/6/93";
#endif
-__RCSID("$NetBSD: locate.c,v 1.17 2009/04/12 13:53:02 lukem Exp $");
+__RCSID("$NetBSD: locate.c,v 1.18 2016/09/05 00:40:29 sevan Exp $");
#endif /* not lint */
/*
@@ -103,9 +103,6 @@
static int fastfind(FILE *, char *);
static char *patprep(const char *);
-int main(int, char **);
-
-
static void
add_db(const char *path)
{
diff -r 2e6bb036d73b -r 679e4f9e0ca2 usr.bin/lock/lock.c
--- a/usr.bin/lock/lock.c Sun Sep 04 18:57:39 2016 +0000
+++ b/usr.bin/lock/lock.c Mon Sep 05 00:40:28 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lock.c,v 1.33 2013/10/18 20:47:06 christos Exp $ */
+/* $NetBSD: lock.c,v 1.34 2016/09/05 00:40:29 sevan Exp $ */
/*
* Copyright (c) 1980, 1987, 1993
Home |
Main Index |
Thread Index |
Old Index