Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/ypserv ANSIfy, remove __P().
details: https://anonhg.NetBSD.org/src/rev/7da0ba404038
branches: trunk
changeset: 533662:7da0ba404038
user: wiz <wiz%NetBSD.org@localhost>
date: Sat Jul 06 21:30:26 2002 +0000
description:
ANSIfy, remove __P().
diffstat:
usr.sbin/ypserv/common/localhostname.c | 8 +--
usr.sbin/ypserv/common/protos.h | 4 +-
usr.sbin/ypserv/common/ypdb.c | 34 ++++-----------
usr.sbin/ypserv/common/ypdb.h | 18 ++++----
usr.sbin/ypserv/common/ypdef.h | 4 +-
usr.sbin/ypserv/common/yplib_host.c | 72 ++++++++-------------------------
usr.sbin/ypserv/common/yplib_host.h | 42 +++++++++---------
usr.sbin/ypserv/common/ypresp_xdr.c | 8 +--
usr.sbin/ypserv/makedbm/makedbm.c | 43 ++++++++------------
usr.sbin/ypserv/mkalias/mkalias.c | 33 +++++---------
usr.sbin/ypserv/mknetid/mknetid.c | 60 +++++++++++-----------------
11 files changed, 120 insertions(+), 206 deletions(-)
diffs (truncated from 773 to 300 lines):
diff -r 56e2bbbdff25 -r 7da0ba404038 usr.sbin/ypserv/common/localhostname.c
--- a/usr.sbin/ypserv/common/localhostname.c Sat Jul 06 18:33:45 2002 +0000
+++ b/usr.sbin/ypserv/common/localhostname.c Sat Jul 06 21:30:26 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: localhostname.c,v 1.7 2000/12/09 00:47:57 thorpej Exp $ */
+/* $NetBSD: localhostname.c,v 1.8 2002/07/06 21:39:25 wiz Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: localhostname.c,v 1.7 2000/12/09 00:47:57 thorpej Exp $");
+__RCSID("$NetBSD: localhostname.c,v 1.8 2002/07/06 21:39:25 wiz Exp $");
#endif
#include <sys/param.h>
@@ -53,9 +53,7 @@
#include "protos.h"
void
-localhostname(buf, buflen)
- char *buf;
- size_t buflen;
+localhostname(char *buf, size_t buflen)
{
struct addrinfo *res, hints;
char hostname[MAXHOSTNAMELEN + 1];
diff -r 56e2bbbdff25 -r 7da0ba404038 usr.sbin/ypserv/common/protos.h
--- a/usr.sbin/ypserv/common/protos.h Sat Jul 06 18:33:45 2002 +0000
+++ b/usr.sbin/ypserv/common/protos.h Sat Jul 06 21:30:26 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: protos.h,v 1.4 1998/06/08 06:53:48 lukem Exp $ */
+/* $NetBSD: protos.h,v 1.5 2002/07/06 21:39:25 wiz Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -36,4 +36,4 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
-void localhostname __P((char *, size_t));
+void localhostname(char *, size_t);
diff -r 56e2bbbdff25 -r 7da0ba404038 usr.sbin/ypserv/common/ypdb.c
--- a/usr.sbin/ypserv/common/ypdb.c Sat Jul 06 18:33:45 2002 +0000
+++ b/usr.sbin/ypserv/common/ypdb.c Sat Jul 06 21:30:26 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ypdb.c,v 1.7 1999/07/26 03:01:09 lukem Exp $ */
+/* $NetBSD: ypdb.c,v 1.8 2002/07/06 21:39:25 wiz Exp $ */
/*
* Copyright (c) 1990, 1993
@@ -42,7 +42,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: ypdb.c,v 1.7 1999/07/26 03:01:09 lukem Exp $");
+__RCSID("$NetBSD: ypdb.c,v 1.8 2002/07/06 21:39:25 wiz Exp $");
#endif
#include <sys/param.h>
@@ -64,9 +64,7 @@
*/
DBM *
-ypdb_open(file, flags, mode)
- const char *file;
- int flags, mode;
+ypdb_open(const char *file, int flags, int mode)
{
char path[MAXPATHLEN], *cp;
DBM *db;
@@ -95,8 +93,7 @@
}
void
-ypdb_close(db)
- DBM *db;
+ypdb_close(DBM *db)
{
(void)(db->close)(db);
}
@@ -108,9 +105,7 @@
*/
datum
-ypdb_fetch(db, key)
- DBM *db;
- datum key;
+ypdb_fetch(DBM *db, datum key)
{
datum retkey;
DBT nk, nd;
@@ -136,8 +131,7 @@
*/
datum
-ypdb_firstkey(db)
- DBM *db;
+ypdb_firstkey(DBM *db)
{
int status;
datum retkey;
@@ -161,8 +155,7 @@
*/
datum
-ypdb_nextkey(db)
- DBM *db;
+ypdb_nextkey(DBM *db)
{
int status;
datum retkey;
@@ -186,9 +179,7 @@
*/
datum
-ypdb_setkey(db, key)
- DBM *db;
- datum key;
+ypdb_setkey(DBM *db, datum key)
{
int status;
DBT nk, nd;
@@ -210,9 +201,7 @@
*/
int
-ypdb_delete(db, key)
- DBM *db;
- datum key;
+ypdb_delete(DBM *db, datum key)
{
int status;
DBT nk;
@@ -234,10 +223,7 @@
*/
int
-ypdb_store(db, key, content, flags)
- DBM *db;
- datum key, content;
- int flags;
+ypdb_store(DBM *db, datum key, datum content, int flags)
{
DBT nk, nd;
diff -r 56e2bbbdff25 -r 7da0ba404038 usr.sbin/ypserv/common/ypdb.h
--- a/usr.sbin/ypserv/common/ypdb.h Sat Jul 06 18:33:45 2002 +0000
+++ b/usr.sbin/ypserv/common/ypdb.h Sat Jul 06 21:30:26 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ypdb.h,v 1.2 1997/07/18 21:57:02 thorpej Exp $ */
+/* $NetBSD: ypdb.h,v 1.3 2002/07/06 21:39:25 wiz Exp $ */
/*
* Copyright (c) 1990, 1993
@@ -64,14 +64,14 @@
typedef DB DBM;
__BEGIN_DECLS
-void ypdb_close __P((DBM *));
-int ypdb_delete __P((DBM *, datum));
-datum ypdb_fetch __P((DBM *, datum));
-datum ypdb_firstkey __P((DBM *));
-datum ypdb_nextkey __P((DBM *));
-datum ypdb_setkey __P((DBM *, datum));
-DBM *ypdb_open __P((const char *, int, int));
-int ypdb_store __P((DBM *, datum, datum, int));
+void ypdb_close(DBM *);
+int ypdb_delete(DBM *, datum);
+datum ypdb_fetch(DBM *, datum);
+datum ypdb_firstkey(DBM *);
+datum ypdb_nextkey(DBM *);
+datum ypdb_setkey(DBM *, datum);
+DBM *ypdb_open(const char *, int, int);
+int ypdb_store(DBM *, datum, datum, int);
__END_DECLS
#endif /* !_YPDB_H_ */
diff -r 56e2bbbdff25 -r 7da0ba404038 usr.sbin/ypserv/common/ypdef.h
--- a/usr.sbin/ypserv/common/ypdef.h Sat Jul 06 18:33:45 2002 +0000
+++ b/usr.sbin/ypserv/common/ypdef.h Sat Jul 06 21:30:26 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ypdef.h,v 1.3 1999/06/06 02:43:04 thorpej Exp $ */
+/* $NetBSD: ypdef.h,v 1.4 2002/07/06 21:39:25 wiz Exp $ */
/*
* Copyright (c) 1994 Mats O Jansson <moj%stacken.kth.se@localhost>
@@ -39,7 +39,7 @@
int xfrstat;
};
-bool_t xdr_ypresp_xfr __P((XDR *, struct ypresp_xfr *));
+bool_t xdr_ypresp_xfr(XDR *, struct ypresp_xfr *);
#define YP_DB_PATH "/var/yp"
#define YP_LAST_KEY "YP_LAST_MODIFIED"
diff -r 56e2bbbdff25 -r 7da0ba404038 usr.sbin/ypserv/common/yplib_host.c
--- a/usr.sbin/ypserv/common/yplib_host.c Sat Jul 06 18:33:45 2002 +0000
+++ b/usr.sbin/ypserv/common/yplib_host.c Sat Jul 06 21:30:26 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: yplib_host.c,v 1.4 1999/01/31 10:14:02 mrg Exp $ */
+/* $NetBSD: yplib_host.c,v 1.5 2002/07/06 21:39:25 wiz Exp $ */
/*
* Copyright (c) 1992, 1993 Theo de Raadt <deraadt%theos.com@localhost>
@@ -33,7 +33,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: yplib_host.c,v 1.4 1999/01/31 10:14:02 mrg Exp $");
+__RCSID("$NetBSD: yplib_host.c,v 1.5 2002/07/06 21:39:25 wiz Exp $");
#endif
#include <sys/param.h>
@@ -64,11 +64,8 @@
struct timeval _yplib_host_timeout = { 10, 0 };
CLIENT *
-yp_bind_host(server, program, version, port, usetcp)
- char *server;
- u_int program, version;
- u_short port;
- int usetcp;
+yp_bind_host(char *server, u_int program, u_int version, u_short port,
+ int usetcp)
{
struct sockaddr_in rsrv_sin;
int rsrv_sock;
@@ -111,8 +108,7 @@
}
CLIENT *
-yp_bind_local(program, version)
- u_int program, version;
+yp_bind_local(u_int program, u_int version)
{
struct sockaddr_in rsrv_sin;
int rsrv_sock;
@@ -133,14 +129,8 @@
}
int
-yp_match_host(client, indomain, inmap, inkey, inkeylen, outval, outvallen)
- CLIENT *client;
- char *indomain;
- char *inmap;
- const char *inkey;
- int inkeylen;
- char **outval;
- int *outvallen;
+yp_match_host(CLIENT *client, char *indomain, char *inmap, const char *inkey,
+ int inkeylen, char **outval, int *outvallen)
{
struct ypresp_val yprv;
struct ypreq_key yprk;
@@ -172,14 +162,8 @@
}
int
-yp_first_host(client, indomain, inmap, outkey, outkeylen, outval, outvallen)
- CLIENT *client;
- char *indomain;
- char *inmap;
- char **outkey;
- int *outkeylen;
- char **outval;
- int *outvallen;
+yp_first_host(CLIENT *client, char *indomain, char *inmap, char **outkey,
+ int *outkeylen, char **outval, int *outvallen)
{
struct ypresp_key_val yprkv;
struct ypreq_nokey yprnk;
@@ -212,17 +196,9 @@
}
int
-yp_next_host(client, indomain, inmap, inkey, inkeylen, outkey,
- outkeylen, outval, outvallen)
- CLIENT *client;
- char *indomain;
- char *inmap;
- char *inkey;
- int inkeylen;
- char **outkey;
- int *outkeylen;
- char **outval;
- int *outvallen;
+yp_next_host(CLIENT *client, char *indomain, char *inmap, char *inkey,
+ int inkeylen, char **outkey, int *outkeylen, char **outval,
+ int *outvallen)
{
struct ypresp_key_val yprkv;
struct ypreq_key yprk;
@@ -257,11 +233,8 @@
}
int
-yp_all_host(client, indomain, inmap, incallback)
Home |
Main Index |
Thread Index |
Old Index