Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/ypserv/yptest de-__P(), ANSIfy.



details:   https://anonhg.NetBSD.org/src/rev/bf110e7428b6
branches:  trunk
changeset: 533639:bf110e7428b6
user:      wiz <wiz%NetBSD.org@localhost>
date:      Sat Jul 06 00:47:55 2002 +0000

description:
de-__P(), ANSIfy.

diffstat:

 usr.sbin/ypserv/yptest/yptest.c |  21 +++++++--------------
 1 files changed, 7 insertions(+), 14 deletions(-)

diffs (51 lines):

diff -r fa64fa1f34c4 -r bf110e7428b6 usr.sbin/ypserv/yptest/yptest.c
--- a/usr.sbin/ypserv/yptest/yptest.c   Sat Jul 06 00:46:12 2002 +0000
+++ b/usr.sbin/ypserv/yptest/yptest.c   Sat Jul 06 00:47:55 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: yptest.c,v 1.5 2001/02/19 23:22:52 cgd Exp $    */
+/*     $NetBSD: yptest.c,v 1.6 2002/07/06 00:47:55 wiz Exp $    */
 
 /*
  * Copyright (c) 1994 Mats O Jansson <moj%stacken.kth.se@localhost>
@@ -33,7 +33,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: yptest.c,v 1.5 2001/02/19 23:22:52 cgd Exp $");
+__RCSID("$NetBSD: yptest.c,v 1.6 2002/07/06 00:47:55 wiz Exp $");
 #endif
 
 #include <sys/types.h>
@@ -48,13 +48,11 @@
 #include <rpcsvc/yp_prot.h>
 #include <rpcsvc/ypclnt.h>
 
-int    main __P((int, char *[]));
-static int yptest_foreach __P((int, char *, int, char *, int, char *));
+int    main(int, char *[]);
+static int yptest_foreach(int, char *, int, char *, int, char *);
 
 int
-main(argc, argv)
-       int argc;
-       char *argv[];
+main(int argc, char **argv)
 {
        char *Domain, *Value, *Key2;
        char *Map = "passwd.byname";
@@ -115,13 +113,8 @@
 }
 
 static int
-yptest_foreach(status, key, keylen, val, vallen, data)
-       int status;
-       char *key;
-       int keylen;
-       char *val;
-       int vallen;
-       char *data;
+yptest_foreach(int status, char *key, int keylen, char *val, int vallen,
+              char *data)
 {
 
        if (status == YP_NOMORE)



Home | Main Index | Thread Index | Old Index