From fc02160569ca3a5172ab97896b5369d58c782d68 Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Tue, 14 Mar 2006 23:21:41 +0000 Subject: 2006-03-15 Thomas Schwinge * loop.c (server_loop): Fix invalid lvalues. --- nfsd/loop.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'nfsd/loop.c') 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)); } } -- cgit v1.2.3