diff options
Diffstat (limited to 'sunrpc/svc_unix.c')
-rw-r--r-- | sunrpc/svc_unix.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sunrpc/svc_unix.c b/sunrpc/svc_unix.c index 59ae7a54e7..df56d9bd5c 100644 --- a/sunrpc/svc_unix.c +++ b/sunrpc/svc_unix.c @@ -294,7 +294,7 @@ __msgread (int sock, void *buf, size_t cnt) { struct iovec iov[1]; struct msghdr msg; - int len, on = 1; + int on = 1; iov[0].iov_base = buf; iov[0].iov_len = cnt; @@ -315,13 +315,13 @@ __msgread (int sock, void *buf, size_t cnt) static int __msgwrite (int sock, void *buf, size_t cnt) { -#ifndef SCM_CRED +#ifndef SCM_CREDS /* We cannot implement this reliably. */ __set_errno (ENOSYS); + return -1; #else struct iovec iov[1]; struct msghdr msg; - int len; iov[0].iov_base = buf; iov[0].iov_len = cnt; |