summaryrefslogtreecommitdiff
path: root/usr.bin/rpcgen
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2003-06-25 21:11:26 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2003-06-25 21:11:26 +0000
commit050c7e8a628282e2ab453bedf3d05f9d9bb7e488 (patch)
treecb48f586e879393fcfa3bcb4618385cd2660ca89 /usr.bin/rpcgen
parent9492ac81c03196dcb3cc04a5cf2730b2b4cfc9ed (diff)
protos
Diffstat (limited to 'usr.bin/rpcgen')
-rw-r--r--usr.bin/rpcgen/rpc_parse.c4
-rw-r--r--usr.bin/rpcgen/rpc_parse.h4
-rw-r--r--usr.bin/rpcgen/rpc_util.c5
-rw-r--r--usr.bin/rpcgen/rpc_util.h6
4 files changed, 9 insertions, 10 deletions
diff --git a/usr.bin/rpcgen/rpc_parse.c b/usr.bin/rpcgen/rpc_parse.c
index e815939739e..e6671c24f3b 100644
--- a/usr.bin/rpcgen/rpc_parse.c
+++ b/usr.bin/rpcgen/rpc_parse.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rpc_parse.c,v 1.12 2003/04/26 18:29:51 pvalchev Exp $ */
+/* $OpenBSD: rpc_parse.c,v 1.13 2003/06/25 21:09:26 deraadt Exp $ */
/* $NetBSD: rpc_parse.c,v 1.5 1995/08/29 23:05:55 cgd Exp $ */
/*
* Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@@ -64,7 +64,7 @@ static void unsigned_dec(char **);
* return the next definition you see
*/
definition *
-get_definition()
+get_definition(void)
{
definition *defp;
token tok;
diff --git a/usr.bin/rpcgen/rpc_parse.h b/usr.bin/rpcgen/rpc_parse.h
index 3f3a6aeecd8..0e27817bd24 100644
--- a/usr.bin/rpcgen/rpc_parse.h
+++ b/usr.bin/rpcgen/rpc_parse.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: rpc_parse.h,v 1.6 2002/07/05 05:39:42 deraadt Exp $ */
+/* $OpenBSD: rpc_parse.h,v 1.7 2003/06/25 21:09:26 deraadt Exp $ */
/* $NetBSD: rpc_parse.h,v 1.3 1995/06/11 21:50:00 pk Exp $ */
/*
* Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@@ -157,7 +157,7 @@ struct definition {
};
typedef struct definition definition;
-definition *get_definition();
+definition *get_definition(void);
struct bas_type {
char *name;
diff --git a/usr.bin/rpcgen/rpc_util.c b/usr.bin/rpcgen/rpc_util.c
index 528ade2106c..66effcc278f 100644
--- a/usr.bin/rpcgen/rpc_util.c
+++ b/usr.bin/rpcgen/rpc_util.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rpc_util.c,v 1.10 2002/07/05 05:39:42 deraadt Exp $ */
+/* $OpenBSD: rpc_util.c,v 1.11 2003/06/25 21:09:26 deraadt Exp $ */
/* $NetBSD: rpc_util.c,v 1.6 1995/08/29 23:05:57 cgd Exp $ */
/*
* Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@@ -96,8 +96,7 @@ definition *
findval(lst, val, cmp)
list *lst;
char *val;
- int (*cmp) ();
-
+ int (*cmp) (definition *, char *);
{
for (; lst != NULL; lst = lst->next) {
diff --git a/usr.bin/rpcgen/rpc_util.h b/usr.bin/rpcgen/rpc_util.h
index a9cc50f12b2..b03a677fa4d 100644
--- a/usr.bin/rpcgen/rpc_util.h
+++ b/usr.bin/rpcgen/rpc_util.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: rpc_util.h,v 1.11 2002/07/05 05:39:42 deraadt Exp $ */
+/* $OpenBSD: rpc_util.h,v 1.12 2003/06/25 21:09:26 deraadt Exp $ */
/* $NetBSD: rpc_util.h,v 1.3 1995/06/11 21:50:10 pk Exp $ */
/*
* Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@@ -91,12 +91,12 @@ extern int nonfatalerrors;
/*
* rpc_util routines
*/
-void storeval();
+void storeval(list **, definition *);
#define STOREVAL(list,item) \
storeval(list,item)
-definition *findval();
+definition *findval(list *, char *, int (*)(definition *, char *));
#define FINDVAL(list,item,finder) \
findval(list, item, finder)