summaryrefslogtreecommitdiffstats
path: root/x11/gxset/files
diff options
context:
space:
mode:
authorlioux <lioux@FreeBSD.org>2001-12-27 22:17:55 +0000
committerlioux <lioux@FreeBSD.org>2001-12-27 22:17:55 +0000
commit1e33d5c309d7eeb455031dcf49fbd8ae239e0f82 (patch)
tree4da553a748026233ac181774c6f57945ebe3970f /x11/gxset/files
parent32eff4ad0de54a4fe9717eb62bf0fb87a2e69f1b (diff)
downloadFreeBSD-ports-1e33d5c309d7eeb455031dcf49fbd8ae239e0f82.zip
FreeBSD-ports-1e33d5c309d7eeb455031dcf49fbd8ae239e0f82.tar.gz
New port gxset version 0.3: GTK frontend for xset(1)
PR: 33239 Submitted by: Bruce M Simpson <bms@spc.org>
Diffstat (limited to 'x11/gxset/files')
-rw-r--r--x11/gxset/files/patch-src:main.c47
1 files changed, 47 insertions, 0 deletions
diff --git a/x11/gxset/files/patch-src:main.c b/x11/gxset/files/patch-src:main.c
new file mode 100644
index 0000000..4aabf19
--- /dev/null
+++ b/x11/gxset/files/patch-src:main.c
@@ -0,0 +1,47 @@
+--- src/main.c.orig Thu Dec 27 11:29:55 2001
++++ src/main.c Thu Dec 27 11:33:43 2001
+@@ -30,6 +30,7 @@
+ #include <getopt.h>
+
+ #include <sys/types.h>
++#include <sys/time.h>
+ #include <sys/resource.h>
+ #include <sys/wait.h>
+
+@@ -150,7 +151,7 @@
+ contains(const char *s, const char *kw, XsetInputType t, int *p1, int *p2)
+ {
+ const char *found;
+- const char stmp[128];
++ char stmp[128];
+ int itmp, itmp2;
+
+ found = strstr(s, kw);
+@@ -655,12 +656,12 @@
+ printf("Usage: %s [OPTION ...] FILE ...\n", g_get_prgname());
+
+ fputs ("\n\
+--h, --help display this help and exit\n\
+--V, --version output version information and exit\n\
++-h, display this help and exit\n\
++-V, output version information and exit\n\
+ \n\
+--n, --dry-run print xset commands to stdout\n\
+--c, --no-confirm-dialog don't use the default confirmation dialogs\n\
+--e, --no-error-dialogs print error messages to stderr\n\
++-n, print xset commands to stdout\n\
++-c, don't use the default confirmation dialogs\n\
++-e, print error messages to stderr\n\
+ \n\
+ Report bugs to René Seindal <rene@seindal.dk>.\n",
+ stdout);
+@@ -689,8 +690,7 @@
+ gtk_set_locale ();
+ gtk_init (&argc, &argv);
+
+- while ((optchar = getopt_long(argc, argv, OPTSTRING,
+- long_options, NULL)) != EOF)
++ while ((optchar = getopt(argc, argv, OPTSTRING)) != EOF)
+ {
+ switch (optchar)
+ {
OpenPOWER on IntegriCloud