Module Name:    src
Committed By:   christos
Date:           Thu Jul 14 19:39:41 UTC 2016

Modified Files:
        src/usr.bin/netstat: if.c main.c

Log Message:
remove __P


To generate a diff of this commit:
cvs rdiff -u -r1.86 -r1.87 src/usr.bin/netstat/if.c
cvs rdiff -u -r1.97 -r1.98 src/usr.bin/netstat/main.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/netstat/if.c
diff -u src/usr.bin/netstat/if.c:1.86 src/usr.bin/netstat/if.c:1.87
--- src/usr.bin/netstat/if.c:1.86	Thu Jul 14 14:58:26 2016
+++ src/usr.bin/netstat/if.c	Thu Jul 14 15:39:41 2016
@@ -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_banner(struct iftot *)
 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);
 

Index: src/usr.bin/netstat/main.c
diff -u src/usr.bin/netstat/main.c:1.97 src/usr.bin/netstat/main.c:1.98
--- src/usr.bin/netstat/main.c:1.97	Thu Jul 14 14:19:11 2016
+++ src/usr.bin/netstat/main.c	Thu Jul 14 15:39:41 2016
@@ -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 @@ __COPYRIGHT("@(#) Copyright (c) 1983, 19
 #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 @@ struct protox {
 	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 @@ const struct softintrq {
 	{ 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 @@ main(int argc, char *argv[])
 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) {

Reply via email to