rpc_test_prog_1_svc.
* rpc_test.h: Create prototypes for rpc_test_echo_1_svc and
rpc_test_prog_1_svc.
* server.c: Declare usage and handlesig static. Change
rpc_test_echo_1 to rpc_test_echo_1_svc and rpc_test_prog_1 to
rpc_test_prog_1_svc.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13547
dc483132-0cff-0310-8789-
dd5450dbe970
+2001-07-02 Ezra Peisach <epeisach@mit.edu>
+
+ * rpc_test_svc.c: Change rpc_test_prog_1 to
+ rpc_test_prog_1_svc.
+
+ * rpc_test.h: Create prototypes for rpc_test_echo_1_svc and
+ rpc_test_prog_1_svc.
+
+ * server.c: Declare usage and handlesig static. Change
+ rpc_test_echo_1 to rpc_test_echo_1_svc and rpc_test_prog_1 to
+ rpc_test_prog_1_svc.
+
2001-06-08 Ezra Peisach <epeisach@mit.edu>
* client.c: Include unistd.h for getopt() prototype.
#define RPC_TEST_PROG ((unsigned long)(1000001))
#define RPC_TEST_VERS_1 ((unsigned long)(1))
#define RPC_TEST_ECHO ((unsigned long)(1))
-extern char ** rpc_test_echo_1();
-extern int rpc_test_prog_1_freeresult();
+extern char ** rpc_test_echo_1_svc(char **, struct svc_req *);
+extern char ** rpc_test_echo_1(char **, CLIENT *);
+extern void rpc_test_prog_1_svc(struct svc_req *, SVCXPRT *);
#endif /* !_RPC_TEST_H_RPCGEN */
}
void
-rpc_test_prog_1(rqstp, transp)
+rpc_test_prog_1_svc(rqstp, transp)
struct svc_req *rqstp;
register SVCXPRT *transp;
{
case RPC_TEST_ECHO:
xdr_argument = xdr_wrapstring;
xdr_result = xdr_wrapstring;
- local = (char *(*)()) rpc_test_echo_1;
+ local = (char *(*)()) rpc_test_echo_1_svc;
break;
default:
#include <sys/param.h> /* MAXHOSTNAMELEN */
#include "rpc_test.h"
-extern void rpc_test_prog_1();
-
extern int svc_debug_gssapi, misc_debug_gssapi;
void rpc_test_badauth(OM_uint32 major, OM_uint32 minor,
#define SERVICE_NAME "server"
#endif
-void usage()
+static void usage()
{
fprintf(stderr, "Usage: server {-t|-u} [svc-debug] [misc-debug]\n");
exit(1);
}
#ifdef POSIX_SIGNALS
-void handlesig(int dummy)
+static void handlesig(int dummy)
#else
-void handlesig(void)
+static void handlesig(void)
#endif
{
exit(0);
exit(1);
}
if (!svc_register(transp, RPC_TEST_PROG, RPC_TEST_VERS_1,
- rpc_test_prog_1, prot)) {
+ rpc_test_prog_1_svc, prot)) {
fprintf(stderr,
"unable to register (RPC_TEST_PROG, RPC_TEST_VERS_1, %s).",
prot == IPPROTO_TCP ? "tcp" : "udp");
/* NOTREACHED */
}
-char **rpc_test_echo_1(char **arg, struct svc_req *h)
+char **rpc_test_echo_1_svc(char **arg, struct svc_req *h)
{
static char *res = NULL;