From 113f86089440d1d87fac1962432f40edcc57248e Mon Sep 17 00:00:00 2001 From: "Neal H. Walfield" Date: Tue, 26 Mar 2002 19:07:55 +0000 Subject: 2002-03-23 James A. Morrison * main.c (main): Use error, not perror and exit. Use ERR, not errno. * mount.c (mount_root): Likewise. * rpc.c (rpc_receive_thread): Use error, not perror. --- nfs/rpc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'nfs/rpc.c') diff --git a/nfs/rpc.c b/nfs/rpc.c index 0b9a9d8e..252acfa3 100644 --- a/nfs/rpc.c +++ b/nfs/rpc.c @@ -1,5 +1,5 @@ /* SunRPC management for NFS client - Copyright (C) 1994, 1995, 1996, 1997 Free Software Foundation + Copyright (C) 1994, 1995, 1996, 1997, 2002 Free Software Foundation This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as @@ -33,6 +33,7 @@ #include #include #include +#include #include #include @@ -370,7 +371,7 @@ rpc_receive_thread () int cc = read (main_udp_socket, buf, 1024 + read_size); if (cc == -1) { - perror ("nfs read"); + error (0, errno, "nfs read"); continue; } else -- cgit v1.2.3