aboutsummaryrefslogtreecommitdiff
path: root/include/rpcsvc/ypclnt.h
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1998-01-16 12:10:13 +0000
committerBruce Evans <bde@FreeBSD.org>1998-01-16 12:10:13 +0000
commitcb4b2fb400a025fd053a21098d7120c4ff6755b2 (patch)
tree868094ec88a8acb2f5cc2500189e56fb3fdbe124 /include/rpcsvc/ypclnt.h
parent25776f4cf7eb6ee6429a290a521087ece39a9532 (diff)
downloadsrc-cb4b2fb400a025fd053a21098d7120c4ff6755b2.tar.gz
src-cb4b2fb400a025fd053a21098d7120c4ff6755b2.zip
Made this header self-sufficent. It had unnecessary dependencies on
<sys/cdefs.h>, <sys/types.h>, <rpcsvc/yp_prot.h>, and on the latter's prerequisites (5 more).
Notes
Notes: svn path=/head/; revision=32552
Diffstat (limited to 'include/rpcsvc/ypclnt.h')
-rw-r--r--include/rpcsvc/ypclnt.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/rpcsvc/ypclnt.h b/include/rpcsvc/ypclnt.h
index a0de83857296..2040459c8689 100644
--- a/include/rpcsvc/ypclnt.h
+++ b/include/rpcsvc/ypclnt.h
@@ -26,12 +26,14 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: ypclnt.h,v 1.4 1996/12/30 14:01:12 peter Exp $
+ * $Id: ypclnt.h,v 1.9 1997/05/28 04:38:25 wpaul Exp $
*/
#ifndef _RPCSVC_YPCLNT_H_
#define _RPCSVC_YPCLNT_H_
+#include <sys/cdefs.h>
+
#define YPERR_BADARGS 1 /* args to function are bad */
#define YPERR_RPC 2 /* RPC failure */
#define YPERR_DOMAIN 3 /* can't bind to a server for domain */
@@ -59,10 +61,12 @@
struct ypall_callback {
/* return non-0 to stop getting called */
- int (*foreach) __P((u_long, char *, int, char *, int, void *));
+ int (*foreach) __P((unsigned long, char *, int, char *, int, void *));
char *data; /* opaque pointer for use of callback fn */
};
+struct dom_binding;
+
__BEGIN_DECLS
int yp_bind __P((char *dom));
int _yp_dobind __P((char *dom, struct dom_binding **ypdb));