summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/dm.h1
-rw-r--r--xenodm/util.c13
2 files changed, 0 insertions, 14 deletions
diff --git a/include/dm.h b/include/dm.h
index ce80f4f..da584de 100644
--- a/include/dm.h
+++ b/include/dm.h
@@ -244,7 +244,6 @@ extern int WaitForServer (struct display *d);
extern void ResetServer (struct display *d);
/* in util.c */
-extern char *localHostname (void);
extern char **parseArgs (char **argv, const char *string);
extern char **setEnv (char **e, const char *name, const char *value);
extern char **putEnv(const char *string, char **env);
diff --git a/xenodm/util.c b/xenodm/util.c
index be5081a..369ce9b 100644
--- a/xenodm/util.c
+++ b/xenodm/util.c
@@ -232,16 +232,3 @@ CleanUpChild (void)
CloseOnFork ();
}
-static char localHostbuf[256];
-static int gotLocalHostname;
-
-char *
-localHostname (void)
-{
- if (!gotLocalHostname)
- {
- XmuGetHostname (localHostbuf, sizeof (localHostbuf) - 1);
- gotLocalHostname = 1;
- }
- return localHostbuf;
-}