From 8b1324427f0ff1e20693e95352e7729c998a5e47 Mon Sep 17 00:00:00 2001 From: wpaul Date: Fri, 22 Dec 1995 04:08:28 +0000 Subject: *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.) --- include/rpcsvc/yp.x | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'include/rpcsvc') 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 -- cgit v1.1