summaryrefslogtreecommitdiff
path: root/nfsd/main.c
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1996-08-07 20:00:30 +0000
committerThomas Bushnell <thomas@gnu.org>1996-08-07 20:00:30 +0000
commitfd5a973890a84907571cbc25f6b2a5b342924570 (patch)
tree76d1e23867fce67dfef03ae410f3ebbbdb4547ea /nfsd/main.c
parent19d0f00234b0884a31c8bd4b806c6d512baae9be (diff)
*** empty log message ***
Diffstat (limited to 'nfsd/main.c')
-rw-r--r--nfsd/main.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/nfsd/main.c b/nfsd/main.c
index 4dcd816f..b4b8464a 100644
--- a/nfsd/main.c
+++ b/nfsd/main.c
@@ -27,13 +27,9 @@
int main_udp_socket, pmap_udp_socket;
struct sockaddr_in main_address, pmap_address;
-char *index_file_name;
-
-#ifdef makefiles_not_broken
-#define STATEDIR # LOCALSTATEDIR
-#else
-#define STATEDIR "/var"
-#endif
+#define INDEX_FILE_NAME(dir) # dir "/state/misc/nfsd.index"
+static char index_file[] = INDEX_FILE_NAME (LOCALSTATEDIR);
+char *index_file_name = index_file;
int
main (int argc, char **argv)
@@ -53,8 +49,6 @@ main (int argc, char **argv)
if (!nthreads)
nthreads = 4;
- asprintf (&index_file_name, "%s/state/misc/nfsd.index", STATEDIR);
-
authserver = getauth ();
maptime_map (0, 0, &mapped_time);