summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2018-07-10 13:15:51 +0000
committerMatthieu Herrb <matthieu@herrb.eu>2020-07-14 15:52:39 +0200
commit570518c43b00c39ee67cc34e731b85f55665de12 (patch)
tree2e0ca981bc68f244abfa63892d60174aafb2043b
parentd5c3db5440f5e19d31ed46054b5d26e5843877cf (diff)
Remove the unused localHostname() function.
-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;
-}