about summary refs log tree commit diff
path: root/sunrpc
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-07-29 14:52:00 +0000
committerUlrich Drepper <drepper@redhat.com>1998-07-29 14:52:00 +0000
commit786a5421b89a0076d494dbea89bca8ae66aa48da (patch)
treea633da581c7f7917f8d4d24a5cb5410b218ee01f /sunrpc
parentec986e237a6c0fe52f172c254d3da2ef57b85eb2 (diff)
downloadglibc-786a5421b89a0076d494dbea89bca8ae66aa48da.tar.gz
glibc-786a5421b89a0076d494dbea89bca8ae66aa48da.tar.xz
glibc-786a5421b89a0076d494dbea89bca8ae66aa48da.zip
Update.
	* Rules (tests): Depend on tests-static only if build-static == yes.

	* misc/Makefile (install-lib): Compile libbsd-compat.a and libg.a
	only if build-static == yes.

1998-07-29 12:58  Ulrich Drepper  <drepper@cygnus.com>

	* sysdeps/generic/glob.c: Winblowz compatibility stuff.
	Patch received from Paul D. Smith <psmith@BayNetworks.COM>.

1998-07-29  Andreas Jaeger  <aj@arthur.rhein-neckar.de>

	* sunrpc/clnt_unix.c (__msgwrite)[!SCM_CRED]: Add return
	statement, fix typo.
	* sunrpc/svc_unix.c (__msgwrite)[!SCM_CRED]: Likewise.

1998-07-29  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
Diffstat (limited to 'sunrpc')
-rw-r--r--sunrpc/clnt_unix.c4
-rw-r--r--sunrpc/svc_unix.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/sunrpc/clnt_unix.c b/sunrpc/clnt_unix.c
index 848b752e6b..64b9ca9731 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;
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;