summaryrefslogtreecommitdiff
path: root/src/main-x11.c
diff options
context:
space:
mode:
authorManoj Srivastava <srivasta@debian.org>2020-05-23 00:33:19 -0700
committerManoj Srivastava <srivasta@debian.org>2020-05-23 00:33:19 -0700
commitd6b913d3ca2e84b75f3675fd6e9f5246c100cf27 (patch)
tree5fc28b7efc737bf2c79dc7d799e0a6013957fe11 /src/main-x11.c
parentc42f029316c0c004a795ca170bdb50644a800534 (diff)
parent73a0259be1d44fdb2ab34266ae0ff63f0d8f0b60 (diff)
Merge branch 'master' into dgit/siddebian/2.4.0-ah-1archive/debian/2.4.0-ah-1
Diffstat (limited to 'src/main-x11.c')
-rw-r--r--src/main-x11.c19
1 files changed, 12 insertions, 7 deletions
diff --git a/src/main-x11.c b/src/main-x11.c
index b4b242e5..19d2ac94 100644
--- a/src/main-x11.c
+++ b/src/main-x11.c
@@ -93,11 +93,10 @@
*/
#include "loadsave.h"
+#include "main.h"
#include "util.h"
#include "variable.h"
-#ifdef USE_X11
-
#ifndef __MAKEDEPEND__
#include <X11/Xlib.h>
#include <X11/Xutil.h>
@@ -556,7 +555,7 @@ int Term_queue_space(void)
*
* NB: The keys added here will be interpreted by any macros or keymaps.
*/
-errr type_string(char *str, uint len)
+static errr type_string(char *str, uint len)
{
char *s;
@@ -1741,8 +1740,6 @@ error:
XSendEvent(DPY, rq->requestor, FALSE, NoEventMask, &event);
}
-extern errr type_string(char *str, uint len);
-
/*
* Add the contents of the PRIMARY buffer to the input queue.
*
@@ -2584,5 +2581,13 @@ errr init_x11(int argc, char *argv[])
return (0);
}
-#endif /* USE_X11 */
-
+int main(int argc, char *argv[])
+{
+ return main_real(
+ argc,
+ argv,
+ "x11",
+ init_x11,
+ " -- -n# Number of terms to use\n"
+ " -- -d<name> Display to use\n");
+}