Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/tadpolectl Ansify



details:   https://anonhg.NetBSD.org/src/rev/66b4baa9a94d
branches:  trunk
changeset: 829251:66b4baa9a94d
user:      sevan <sevan%NetBSD.org@localhost>
date:      Tue Jan 23 19:01:33 2018 +0000

description:
Ansify

diffstat:

 usr.sbin/tadpolectl/tadpolectl.c |  18 +++++++-----------
 1 files changed, 7 insertions(+), 11 deletions(-)

diffs (46 lines):

diff -r 9474ea88e12a -r 66b4baa9a94d usr.sbin/tadpolectl/tadpolectl.c
--- a/usr.sbin/tadpolectl/tadpolectl.c  Tue Jan 23 17:24:31 2018 +0000
+++ b/usr.sbin/tadpolectl/tadpolectl.c  Tue Jan 23 19:01:33 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tadpolectl.c,v 1.9 2015/10/02 20:42:15 joerg Exp $ */
+/* $NetBSD: tadpolectl.c,v 1.10 2018/01/23 19:01:33 sevan Exp $ */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -46,11 +46,10 @@
 
 int aflag, nflag, wflag, dev;
 
-#define PROTO(x) int x __P((int, int, int));
-static void usage __P((void)) __dead;
-static void parse __P((char *));
-char *dashdot __P((const char *));
-int main __P((int, char *[]));
+#define PROTO(x) int x(int, int, int);
+static void usage(void) __dead;
+static void parse(char *);
+char *dashdot(const char *);
 PROTO(hw_version)
 PROTO(hw_microcontroller_version)
 PROTO(hw_poweroncycles)
@@ -714,8 +713,7 @@
 }
 
 char *
-dashdot(string)
-       const char *string;
+dashdot(const char *string)
 {
        char *p;
        char *save;
@@ -733,9 +731,7 @@
 }
 
 int
-main(argc, argv)
-       int argc;
-       char *argv[];
+main(int argc, char *argv[])
 {
        int ch, j;
 



Home | Main Index | Thread Index | Old Index