diff options
author | Neal H. Walfield <neal@gnu.org> | 2002-03-26 19:07:55 +0000 |
---|---|---|
committer | Neal H. Walfield <neal@gnu.org> | 2002-03-26 19:07:55 +0000 |
commit | 113f86089440d1d87fac1962432f40edcc57248e (patch) | |
tree | d5996ee3357d5d5142b078faf41b95bd92a3baad /nfs/rpc.c | |
parent | 928dab1dc1114c85e73ee72f09b7549416b08306 (diff) | |
download | hurd-113f86089440d1d87fac1962432f40edcc57248e.tar.gz hurd-113f86089440d1d87fac1962432f40edcc57248e.tar.bz2 hurd-113f86089440d1d87fac1962432f40edcc57248e.zip |
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.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |