summaryrefslogtreecommitdiff
path: root/nfsd/main.c
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@gnu.org>2002-03-26 19:09:34 +0000
committerNeal H. Walfield <neal@gnu.org>2002-03-26 19:09:34 +0000
commit4ba5bfd888ec829ea12a2334fd29c3fe7046fba2 (patch)
treea4848ef3bb21239e7b9cb6086912b946474c4be2 /nfsd/main.c
parent113f86089440d1d87fac1962432f40edcc57248e (diff)
2002-03-23 James A. Morrison <ja2morri@uwaterloo.ca>
* fsys.c (init_filesystems): Use error, not fprintf. Use MACH_PORT_NULL explicitly. (write_filesystems): Use error, not fprintf. Use ERR, not errno. * main.c (main): Use error, not perror and exit.
Diffstat (limited to 'nfsd/main.c')
-rw-r--r--nfsd/main.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/nfsd/main.c b/nfsd/main.c
index d4d040c6..2e5df1c2 100644
--- a/nfsd/main.c
+++ b/nfsd/main.c
@@ -63,17 +63,12 @@ main (int argc, char **argv)
fail = bind (main_udp_socket, (struct sockaddr *)&main_address,
sizeof (struct sockaddr_in));
if (fail)
- {
- perror ("Binding NFS socket");
- exit (1);
- }
+ error (1, errno, "Binding NFS socket");
+
fail = bind (pmap_udp_socket, (struct sockaddr *)&pmap_address,
sizeof (struct sockaddr_in));
if (fail)
- {
- perror ("Binding PMAP socket");
- exit (1);
- }
+ error (1, errno, "Binding PMAP socket");
init_filesystems ();