version 1.57, 2007/07/07 22:33:57 |
version 1.58, 2009/01/18 10:39:17 |
Line 966 direct_set(char *buf, int outlen, struct |
|
Line 966 direct_set(char *buf, int outlen, struct |
|
iov[1].iov_len = sizeof(ybr); |
iov[1].iov_len = sizeof(ybr); |
bytes = readv(fd, iov, 2); |
bytes = readv(fd, iov, 2); |
(void)close(fd); |
(void)close(fd); |
if (bytes != (iov[0].iov_len + iov[1].iov_len)) { |
if ((size_t)bytes != (iov[0].iov_len + iov[1].iov_len)) { |
/* Binding file corrupt? */ |
/* Binding file corrupt? */ |
yp_log(LOG_WARNING, "%s: %m", path); |
yp_log(LOG_WARNING, "%s: %m", path); |
been_ypset = 0; |
been_ypset = 0; |
|
|
#endif |
#endif |
return RPC_CANTRECV; |
return RPC_CANTRECV; |
} |
} |
if (inlen < sizeof(u_int32_t)) |
if ((size_t)inlen < sizeof(u_int32_t)) |
goto recv_again; |
goto recv_again; |
|
|
/* |
/* |
|
|
#endif |
#endif |
return RPC_CANTRECV; |
return RPC_CANTRECV; |
} |
} |
if (inlen < sizeof(u_int32_t)) |
if ((size_t)inlen < sizeof(u_int32_t)) |
goto recv_again; |
goto recv_again; |
|
|
/* |
/* |
Line 1188 rpc_received(char *dom, struct sockaddr_ |
|
Line 1188 rpc_received(char *dom, struct sockaddr_ |
|
ybr.ypbind_respbody.ypbind_bindinfo.ypbind_binding_port = |
ybr.ypbind_respbody.ypbind_bindinfo.ypbind_binding_port = |
raddrp->sin_port; |
raddrp->sin_port; |
|
|
if (writev(ypdb->dom_lockfd, iov, 2) != |
if ((size_t)writev(ypdb->dom_lockfd, iov, 2) != |
iov[0].iov_len + iov[1].iov_len) { |
iov[0].iov_len + iov[1].iov_len) { |
yp_log(LOG_WARNING, "writev: %m"); |
yp_log(LOG_WARNING, "writev: %m"); |
(void)close(ypdb->dom_lockfd); |
(void)close(ypdb->dom_lockfd); |