diff options
author | Bill Paul <wpaul@FreeBSD.org> | 1995-12-22 04:08:28 +0000 |
---|---|---|
committer | Bill Paul <wpaul@FreeBSD.org> | 1995-12-22 04:08:28 +0000 |
commit | 898daf2b5bb4dd9097f916844914fcc240bfdb66 (patch) | |
tree | c31d1fee27299442e085a898ae858bb3465a97e9 /include/rpcsvc | |
parent | 1814a725c237ab9c2e10e438a726c327abd4ab61 (diff) | |
download | src-898daf2b5bb4dd9097f916844914fcc240bfdb66.tar.gz src-898daf2b5bb4dd9097f916844914fcc240bfdb66.zip |
*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.)
Notes
Notes:
svn path=/head/; revision=12957
Diffstat (limited to 'include/rpcsvc')
-rw-r--r-- | include/rpcsvc/yp.x | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/rpcsvc/yp.x b/include/rpcsvc/yp.x index 80ab47d281e8..4c441927487d 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 |