Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/netstat remove __P



details:   https://anonhg.NetBSD.org/src/rev/af8a18549724
branches:  trunk
changeset: 346486:af8a18549724
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Jul 14 19:39:41 2016 +0000

description:
remove __P

diffstat:

 usr.bin/netstat/if.c   |   6 +++---
 usr.bin/netstat/main.c |  23 +++++++++++------------
 2 files changed, 14 insertions(+), 15 deletions(-)

diffs (89 lines):

diff -r 0678c57d95b5 -r af8a18549724 usr.bin/netstat/if.c
--- a/usr.bin/netstat/if.c      Thu Jul 14 19:08:12 2016 +0000
+++ b/usr.bin/netstat/if.c      Thu Jul 14 19:39:41 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if.c,v 1.86 2016/07/14 18:58:26 christos Exp $ */
+/*     $NetBSD: if.c,v 1.87 2016/07/14 19:39:41 christos Exp $ */
 
 /*
  * Copyright (c) 1983, 1988, 1993
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "from: @(#)if.c 8.2 (Berkeley) 2/21/94";
 #else
-__RCSID("$NetBSD: if.c,v 1.86 2016/07/14 18:58:26 christos Exp $");
+__RCSID("$NetBSD: if.c,v 1.87 2016/07/14 19:39:41 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -92,7 +92,7 @@
 static void iftot_print_sum(struct iftot *, struct iftot *);
 static void iftot_print(struct iftot *, struct iftot *);
 
-static void catchalarm __P((int));
+static void catchalarm(int);
 static void get_rtaddrs(int, struct sockaddr *, struct sockaddr **);
 static void fetchifs(void);
 
diff -r 0678c57d95b5 -r af8a18549724 usr.bin/netstat/main.c
--- a/usr.bin/netstat/main.c    Thu Jul 14 19:08:12 2016 +0000
+++ b/usr.bin/netstat/main.c    Thu Jul 14 19:39:41 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: main.c,v 1.97 2016/07/14 18:19:11 christos Exp $       */
+/*     $NetBSD: main.c,v 1.98 2016/07/14 19:39:41 christos Exp $       */
 
 /*
  * Copyright (c) 1983, 1988, 1993
@@ -39,7 +39,7 @@
 #if 0
 static char sccsid[] = "from: @(#)main.c       8.4 (Berkeley) 3/1/94";
 #else
-__RCSID("$NetBSD: main.c,v 1.97 2016/07/14 18:19:11 christos Exp $");
+__RCSID("$NetBSD: main.c,v 1.98 2016/07/14 19:39:41 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -184,13 +184,13 @@
        u_char  pr_sindex;              /* index into nlist of stat block */
        u_char  pr_wanted;              /* 1 if wanted, 0 otherwise */
        void    (*pr_cblocks)           /* control blocks printing routine */
-                       __P((u_long, const char *));
+                       (u_long, const char *);
        void    (*pr_stats)             /* statistics printing routine */
-                       __P((u_long, const char *));
+                       (u_long, const char *);
        void    (*pr_istats)
-                       __P((const char *));    /* per/if statistics printing routine */
+                       (const char *); /* per/if statistics printing routine */
        void    (*pr_dump)              /* PCB state dump routine */
-                       __P((u_long, const char *, u_long));
+                       (u_long, const char *, u_long);
        const char *pr_name;            /* well-known name */
 } protox[] = {
        { N_TCBTABLE,   N_TCPSTAT,      1,      protopr,
@@ -301,12 +301,11 @@
        { NULL, -1 },
 };
 
-int main __P((int, char *[]));
-static void printproto __P((struct protox *, const char *));
-static void print_softintrq __P((void));
+static void printproto(struct protox *, const char *);
+static void print_softintrq(void);
 __dead static void usage(void);
-static struct protox *name2protox __P((const char *));
-static struct protox *knownname __P((const char *));
+static struct protox *name2protox(const char *);
+static struct protox *knownname(const char *);
 static void prepare(const char *, const char *, struct protox *tp);
 static kvm_t *prepare_kvmd(const char *, const char *, char *);
 
@@ -723,7 +722,7 @@
 static void
 printproto(struct protox *tp, const char *name)
 {
-       void (*pr) __P((u_long, const char *));
+       void (*pr)(u_long, const char *);
        u_long off;
 
        if (sflag) {



Home | Main Index | Thread Index | Old Index