diff options
Diffstat (limited to 'sunrpc/clnt_unix.c')
-rw-r--r-- | sunrpc/clnt_unix.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sunrpc/clnt_unix.c b/sunrpc/clnt_unix.c index 848b752..64b9ca9 100644 --- a/sunrpc/clnt_unix.c +++ b/sunrpc/clnt_unix.c @@ -466,14 +466,14 @@ __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; struct cmessage cm; - int len; iov[0].iov_base = buf; iov[0].iov_len = cnt; |