summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authortmm <tmm@FreeBSD.org>2004-05-27 11:34:21 +0000
committertmm <tmm@FreeBSD.org>2004-05-27 11:34:21 +0000
commit6a90fe21e3a73013a743b6ff5d167e99ef9aad77 (patch)
tree5918066e6762c93b7ba94f337ceb61cb637412f5 /include
parent618c3ddad0f8855055d20416129ee35e96e16d8b (diff)
downloadFreeBSD-src-6a90fe21e3a73013a743b6ff5d167e99ef9aad77.zip
FreeBSD-src-6a90fe21e3a73013a743b6ff5d167e99ef9aad77.tar.gz
Correct some types in the yp structures; this fixes a number of problems
on sparc64. Obtained from and cross-checked with the NetBSD version of this file and the rpcgen-generated code.
Diffstat (limited to 'include')
-rw-r--r--include/rpcsvc/yp_prot.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/include/rpcsvc/yp_prot.h b/include/rpcsvc/yp_prot.h
index d8b31e4..42431a1 100644
--- a/include/rpcsvc/yp_prot.h
+++ b/include/rpcsvc/yp_prot.h
@@ -100,7 +100,7 @@ typedef struct {
struct ypmap_parms {
char *domain;
char *map;
- u_long ordernum;
+ u_int ordernum;
char *owner;
};
@@ -117,9 +117,9 @@ struct ypreq_nokey {
struct ypreq_xfr {
struct ypmap_parms map_parms;
- u_long transid;
- u_long proto;
- u_short port;
+ u_int transid;
+ u_int proto;
+ u_int port;
};
#define ypxfr_domain map_parms.domain
#define ypxfr_map map_parms.map
@@ -127,24 +127,24 @@ struct ypreq_xfr {
#define ypxfr_owner map_parms.owner
struct ypresp_val {
- u_long status;
+ u_int status;
datum valdat;
};
struct ypresp_key_val {
- u_long status;
+ u_int status;
datum keydat;
datum valdat;
};
struct ypresp_master {
- u_long status;
+ u_int status;
char *master;
};
struct ypresp_order {
- u_long status;
- u_long ordernum;
+ u_int status;
+ u_int ordernum;
};
struct ypmaplist {
@@ -153,7 +153,7 @@ struct ypmaplist {
};
struct ypresp_maplist {
- u_long status;
+ u_int status;
struct ypmaplist *list;
};
@@ -245,7 +245,7 @@ struct ypbind_binding {
struct ypbind_resp {
enum ypbind_resptype ypbind_status;
union {
- u_long ypbind_error;
+ u_int ypbind_error;
struct ypbind_binding ypbind_bindinfo;
} ypbind_respbody;
};
@@ -261,7 +261,7 @@ struct ypbind_resp {
struct ypbind_setdom {
char ypsetdom_domain[YPMAXDOMAIN + 1];
struct ypbind_binding ypsetdom_binding;
- u_short ypsetdom_vers;
+ u_int ypsetdom_vers;
};
#define ypsetdom_addr ypsetdom_binding.ypbind_binding_addr
#define ypsetdom_port ypsetdom_binding.ypbind_binding_port
@@ -286,8 +286,8 @@ struct ypbind_setdom {
#define YPPUSHPROC_XFRRESP ((u_long)1)
struct yppushresp_xfr {
- u_long transid;
- u_long status;
+ u_int transid;
+ u_int status;
};
/* yppush status value in yppushresp_xfr.status */
OpenPOWER on IntegriCloud