summaryrefslogtreecommitdiff
path: root/usr.sbin/ypserv/yppush/yppush_proc.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/ypserv/yppush/yppush_proc.c')
-rw-r--r--usr.sbin/ypserv/yppush/yppush_proc.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/usr.sbin/ypserv/yppush/yppush_proc.c b/usr.sbin/ypserv/yppush/yppush_proc.c
index ecb557980aa..8e2309f3834 100644
--- a/usr.sbin/ypserv/yppush/yppush_proc.c
+++ b/usr.sbin/ypserv/yppush/yppush_proc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: yppush_proc.c,v 1.7 2003/06/02 21:58:27 maja Exp $ */
+/* $OpenBSD: yppush_proc.c,v 1.8 2003/07/15 06:10:46 deraadt Exp $ */
/*
* Copyright (c) 1996 Mats O Jansson <moj@stacken.kth.se>
@@ -27,9 +27,11 @@
*/
#ifndef lint
-static const char rcsid[] = "$OpenBSD: yppush_proc.c,v 1.7 2003/06/02 21:58:27 maja Exp $";
+static const char rcsid[] = "$OpenBSD: yppush_proc.c,v 1.8 2003/07/15 06:10:46 deraadt Exp $";
#endif /* not lint */
+#include <sys/types.h>
+#include <rpcsvc/yp.h>
#include <stdio.h>
#include "yppush.h"
@@ -46,9 +48,10 @@ yppushproc_null_1_svc(void *argp, struct svc_req *rqstp)
return((void *) &result);
}
-void *
-yppushproc_xfrresp_1_svc(yppushresp_xfr *argp, struct svc_req *rqstp)
+yppushresp_xfr *
+yppushproc_xfrresp_1_svc(void *v, struct svc_req *rqstp)
{
+ yppushresp_xfr *argp = (yppushresp_xfr *)v;
static char *result;
/*
@@ -57,5 +60,5 @@ yppushproc_xfrresp_1_svc(yppushresp_xfr *argp, struct svc_req *rqstp)
if ((argp->status < YPPUSH_SUCC) || Verbose)
fprintf(stderr, "yppush: %s\n",
yppush_err_string(argp->status));
- return((void *) &result);
+ return((yppushresp_xfr *) &result);
}