summaryrefslogtreecommitdiff
path: root/x11-clocks/dclock/files/patch-_dclock.c
diff options
context:
space:
mode:
Diffstat (limited to 'x11-clocks/dclock/files/patch-_dclock.c')
-rw-r--r--x11-clocks/dclock/files/patch-_dclock.c32
1 files changed, 32 insertions, 0 deletions
diff --git a/x11-clocks/dclock/files/patch-_dclock.c b/x11-clocks/dclock/files/patch-_dclock.c
new file mode 100644
index 000000000000..f8d7bb3bb6c5
--- /dev/null
+++ b/x11-clocks/dclock/files/patch-_dclock.c
@@ -0,0 +1,32 @@
+--- dclock.c.orig 2008-07-08 12:35:18.000000000 +0900
++++ dclock.c 2012-10-08 00:28:47.000000000 +0900
+@@ -7,6 +7,7 @@
+ * manager: *Dclock.seconds: on
+ */
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <locale.h>
+ #include <X11/Intrinsic.h>
+ #include "Dclock.h"
+@@ -114,6 +115,7 @@
+ { "quit", quit },
+ };
+
++int
+ main(argc, argv)
+ char *argv[];
+ {
+@@ -122,10 +124,11 @@
+ char *name, *rindex();
+ XWMHints *wmhints; /* for proper input focus */
+
+- if (name = rindex(argv[0], '/'))
++ if ((name = rindex(argv[0], '/'))) {
+ name++;
+- else
++ } else {
+ name = argv[0];
++ }
+
+ setlocale(LC_TIME, "");
+