From a1061e8b995a370459aad1d0e7ebc45f8fc04b98 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Tue, 5 Mar 1996 00:37:44 +0000 Subject: Formerly main.c.~14~ --- nfs/main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'nfs') diff --git a/nfs/main.c b/nfs/main.c index 0e490526..f473b710 100644 --- a/nfs/main.c +++ b/nfs/main.c @@ -30,6 +30,8 @@ #include #include +extern char *localhost (); + #define DEFAULT_SOFT_RETRIES 3 /* times */ #define DEFAULT_STAT_TIMEOUT 3 /* seconds */ #define DEFAULT_CACHE_TIMEOUT 3 /* seconds */ @@ -342,8 +344,8 @@ main (int argc, char **argv) cthread_detach (cthread_fork ((cthread_fn_t) timeout_service_thread, 0)); cthread_detach (cthread_fork ((cthread_fn_t) rpc_receive_thread, 0)); - hostname = malloc (1000); - gethostname (hostname, 1000); + hostname = localhost (); + netfs_root_node = mount_root (remote_fs, host); if (!netfs_root_node) -- cgit v1.2.3