summaryrefslogtreecommitdiff
path: root/nfsd
diff options
context:
space:
mode:
authorThomas Schwinge <tschwinge@gnu.org>2006-03-14 23:21:41 +0000
committerThomas Schwinge <tschwinge@gnu.org>2006-03-14 23:21:41 +0000
commitfc02160569ca3a5172ab97896b5369d58c782d68 (patch)
tree5b76c108c2d2dbf1015368c9cc1e048fd3587a7c /nfsd
parenta50e4ca8d1d10f869b1ef66489eee60431cad637 (diff)
2006-03-15 Thomas Schwinge <tschwinge@gnu.org>
* loop.c (server_loop): Fix invalid lvalues.
Diffstat (limited to 'nfsd')
-rw-r--r--nfsd/ChangeLog4
-rw-r--r--nfsd/loop.c6
2 files changed, 7 insertions, 3 deletions
diff --git a/nfsd/ChangeLog b/nfsd/ChangeLog
index 7d89361b..b0da0207 100644
--- a/nfsd/ChangeLog
+++ b/nfsd/ChangeLog
@@ -1,3 +1,7 @@
+2006-03-15 Thomas Schwinge <tschwinge@gnu.org>
+
+ * loop.c (server_loop): Fix invalid lvalues.
+
2002-09-29 Marcus Brinkmann <marcus@gnu.org>
* loop.c (server_loop): Use memset instead bzero.
diff --git a/nfsd/loop.c b/nfsd/loop.c
index 246e0ba8..bfec5e5a 100644
--- a/nfsd/loop.c
+++ b/nfsd/loop.c
@@ -1,5 +1,5 @@
/* loop.c - Main server loop for nfs server.
- Copyright (C) 1996,98,2002 Free Software Foundation, Inc.
+ Copyright (C) 1996,98,2002,2006 Free Software Foundation, Inc.
Written by Michael I. Bushnell, p/BSG.
This file is part of the GNU Hurd.
@@ -77,7 +77,7 @@ server_loop (int fd)
/* This transacation has already completed. */
goto repost_reply;
- r = (int *) rbuf = malloc (MAXIOSIZE);
+ r = (int *) (rbuf = malloc (MAXIOSIZE));
if (ntohl (*p) != RPC_MSG_VERSION)
{
@@ -173,7 +173,7 @@ server_loop (int fd)
if (amt > MAXIOSIZE)
{
free (rbuf);
- r = (int *) rbuf = malloc (amt);
+ r = (int *) (rbuf = malloc (amt));
}
}