diff options
Diffstat (limited to 'nfsd/loop.c')
-rw-r--r-- | nfsd/loop.c | 6 |
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)); } } |