summaryrefslogtreecommitdiff
path: root/nfs
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-03-05 00:37:44 +0000
committerMiles Bader <miles@gnu.org>1996-03-05 00:37:44 +0000
commita1061e8b995a370459aad1d0e7ebc45f8fc04b98 (patch)
treeb88ee9376e97f54b98f8b1002e8ce3bd5f50aa14 /nfs
parent5b845f34e5dca3e87b92045c870244aaad4b875d (diff)
Formerly main.c.~14~
Diffstat (limited to 'nfs')
-rw-r--r--nfs/main.c6
1 files changed, 4 insertions, 2 deletions
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 <argp.h>
#include <argz.h>
+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)