From 8d6301358e34f15e019022cc5321bbd950a1fa01 Mon Sep 17 00:00:00 2001 From: Alfred Perlstein Date: Tue, 5 Feb 2002 23:43:43 +0000 Subject: Fix cc -Wall, fix rcsid warnings, add missing prototypes, change prototypes to be the same as in the original sun tirpc code. Remove ()P macro in a file where the mayority had ()P already removed. Add them if the mayority use ()P macros. Submitted by: mbr Requested by: bde --- include/rpc/auth.h | 17 +++++++++++++---- include/rpc/rpc_com.h | 1 + 2 files changed, 14 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/rpc/auth.h b/include/rpc/auth.h index a210a5e32834..ce20370e6cc4 100644 --- a/include/rpc/auth.h +++ b/include/rpc/auth.h @@ -267,7 +267,7 @@ extern AUTH *authdes_seccreate (const char *, const u_int, const char *, __END_DECLS __BEGIN_DECLS -extern bool_t xdr_opaque_auth __P((XDR *, struct opaque_auth *)); +extern bool_t xdr_opaque_auth (XDR *, struct opaque_auth *); __END_DECLS #define authsys_create(c,i1,i2,i3,ip) authunix_create((c),(i1),(i2),(i3),(ip)) @@ -298,6 +298,15 @@ extern int key_setsecret(const char *); extern int key_secretkey_is_set(void); __END_DECLS +/* + * Publickey routines. + */ +__BEGIN_DECLS +extern int getpublickey (const char *, char *); +extern int getpublicandprivatekey (char *, char *); +extern int getsecretkey (char *, char *, char *); +__END_DECLS + #ifdef KERBEROS /* * Kerberos style authentication @@ -334,9 +343,9 @@ __END_DECLS __BEGIN_DECLS struct svc_req; struct rpc_msg; -enum auth_stat _svcauth_null __P((struct svc_req *, struct rpc_msg *)); -enum auth_stat _svcauth_short __P((struct svc_req *, struct rpc_msg *)); -enum auth_stat _svcauth_unix __P((struct svc_req *, struct rpc_msg *)); +enum auth_stat _svcauth_null (struct svc_req *, struct rpc_msg *); +enum auth_stat _svcauth_short (struct svc_req *, struct rpc_msg *); +enum auth_stat _svcauth_unix (struct svc_req *, struct rpc_msg *); __END_DECLS #define AUTH_NONE 0 /* no authentication */ diff --git a/include/rpc/rpc_com.h b/include/rpc/rpc_com.h index 8add5d4c6a03..f47db238467d 100644 --- a/include/rpc/rpc_com.h +++ b/include/rpc/rpc_com.h @@ -59,6 +59,7 @@ __BEGIN_DECLS extern u_int __rpc_get_a_size __P((int)); extern int __rpc_dtbsize __P((void)); +extern int _rpc_dtablesize __P((void)); extern struct netconfig * __rpcgettp __P((int)); extern int __rpc_get_default_domain __P((char **)); -- cgit v1.3