summaryrefslogtreecommitdiffstats
path: root/include/rpcsvc
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>1995-12-22 04:08:28 +0000
committerwpaul <wpaul@FreeBSD.org>1995-12-22 04:08:28 +0000
commit8b1324427f0ff1e20693e95352e7729c998a5e47 (patch)
treec31d1fee27299442e085a898ae858bb3465a97e9 /include/rpcsvc
parent3b1844ffed97a280f416ed667f7b46ce3ef52184 (diff)
downloadFreeBSD-src-8b1324427f0ff1e20693e95352e7729c998a5e47.zip
FreeBSD-src-8b1324427f0ff1e20693e95352e7729c998a5e47.tar.gz
*groan* Fix yet _ANOTHER_ discrepancy between the NIS protocol definition
and real life. YPPUSHPROC_XFRRESP is supposed to return void and take an argument of type yppushresp_xfr, not the other way around as yp.x seems to imply. (I spent two hours today staring intensely at my prototype ypxfr code and scratching my head before I finally figured this out.)
Diffstat (limited to 'include/rpcsvc')
-rw-r--r--include/rpcsvc/yp.x8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/rpcsvc/yp.x b/include/rpcsvc/yp.x
index 80ab47d..4c44192 100644
--- a/include/rpcsvc/yp.x
+++ b/include/rpcsvc/yp.x
@@ -34,7 +34,7 @@
#ifndef RPC_HDR
%#ifndef lint
%/*static char sccsid[] = "from: @(#)yp.x 2.1 88/08/01 4.0 RPCSRC";*/
-%static char rcsid[] = "$Id: yp.x,v 1.2 1995/12/08 17:58:50 wpaul Exp $";
+%static char rcsid[] = "$Id: yp.x,v 1.3 1995/12/09 08:34:04 wpaul Exp $";
%#endif /* not lint */
#endif
@@ -278,9 +278,13 @@ program YPPUSH_XFRRESPPROG {
version YPPUSH_XFRRESPVERS {
void
YPPUSHPROC_NULL(void) = 0;
-
+#ifdef STUPID_SUN_BUG /* argument and return value are backwards */
yppushresp_xfr
YPPUSHPROC_XFRRESP(void) = 1;
+#else
+ void
+ YPPUSHPROC_XFRRESP(yppushresp_xfr) = 1;
+#endif
} = 1;
} = 0x40000000; /* transient: could be anything up to 0x5fffffff */
#endif
OpenPOWER on IntegriCloud