summaryrefslogtreecommitdiff
path: root/nfs/rpc.c
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@gnu.org>2002-03-26 19:07:55 +0000
committerNeal H. Walfield <neal@gnu.org>2002-03-26 19:07:55 +0000
commit113f86089440d1d87fac1962432f40edcc57248e (patch)
treed5996ee3357d5d5142b078faf41b95bd92a3baad /nfs/rpc.c
parent928dab1dc1114c85e73ee72f09b7549416b08306 (diff)
2002-03-23 James A. Morrison <ja2morri@uwaterloo.ca>
* 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.
Diffstat (limited to 'nfs/rpc.c')
-rw-r--r--nfs/rpc.c5
1 files changed, 3 insertions, 2 deletions
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 <netinet/in.h>
#include <assert.h>
#include <errno.h>
+#include <error.h>
#include <unistd.h>
#include <stdio.h>
@@ -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