summaryrefslogtreecommitdiff
path: root/nfsd/loop.c
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/loop.c
parenta50e4ca8d1d10f869b1ef66489eee60431cad637 (diff)
2006-03-15 Thomas Schwinge <tschwinge@gnu.org>
* loop.c (server_loop): Fix invalid lvalues.
Diffstat (limited to 'nfsd/loop.c')
-rw-r--r--nfsd/loop.c6
1 files changed, 3 insertions, 3 deletions
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));
}
}