sys/rpc: Use C99 fixed-width integer types.

No functional change.

Reviewed by:	imp, emaste
Differential Revision:	https://reviews.freebsd.org/D33640
This commit is contained in:
John Baldwin 2021-12-28 09:43:15 -08:00
parent c768021bda
commit bcd0e31df3
3 changed files with 4 additions and 4 deletions

View File

@ -309,7 +309,7 @@ __rpc_taddr2uaddr_af(int af, const struct netbuf *nbuf)
struct sockaddr_in6 *sin6;
char namebuf6[INET6_ADDRSTRLEN];
#endif
u_int16_t port;
uint16_t port;
sbuf_new(&sb, NULL, 0, SBUF_AUTOEXTEND);
@ -793,7 +793,7 @@ bindresvport(struct socket *so, struct sockaddr *sa)
#endif
struct sockopt opt;
int proto, portrange, portlow;
u_int16_t *portp;
uint16_t *portp;
socklen_t salen;
if (sa == NULL) {

View File

@ -1180,7 +1180,7 @@ svc_rpc_gss_callback(struct svc_rpc_gss_client *client, struct svc_req *rqst)
static bool_t
svc_rpc_gss_check_replay(struct svc_rpc_gss_client *client, uint32_t seq)
{
u_int32_t offset;
uint32_t offset;
int word, bit;
bool_t result;

View File

@ -176,7 +176,7 @@ typedef struct __rpc_svcxprt {
int xp_type; /* transport type */
int xp_idletimeout; /* idle time before closing */
time_t xp_lastactive; /* time of last RPC */
u_int64_t xp_sockref; /* set by nfsv4 to identify socket */
uint64_t xp_sockref; /* set by nfsv4 to identify socket */
int xp_upcallset; /* socket upcall is set up */
uint32_t xp_snd_cnt; /* # of bytes to send to socket */
uint32_t xp_snt_cnt; /* # of bytes sent to socket */