39 lines
690 B
Plaintext
39 lines
690 B
Plaintext
$OpenBSD: patch-main_c,v 1.2 2010/05/17 08:31:12 espie Exp $
|
|
--- main.c.orig Tue Jan 12 19:59:36 1993
|
|
+++ main.c Mon May 17 10:22:50 2010
|
|
@@ -14,6 +14,7 @@
|
|
*/
|
|
|
|
# include <stdio.h>
|
|
+# include <stdlib.h>
|
|
|
|
# include <X11/Intrinsic.h>
|
|
# include <X11/StringDefs.h>
|
|
@@ -23,12 +24,15 @@
|
|
|
|
Widget top_form;
|
|
|
|
-void
|
|
+extern AppData app_data;
|
|
+
|
|
+static void chk_debug(int, char **);
|
|
+
|
|
+int
|
|
main(argc, argv)
|
|
int argc;
|
|
char **argv;
|
|
{
|
|
- static void chk_debug();
|
|
|
|
chk_debug(argc, argv);
|
|
|
|
@@ -66,7 +70,7 @@ chk_debug(argc, argv)
|
|
/* ugly hack */
|
|
for (i = 1; i < argc; i++) {
|
|
if (strcmp(argv[i], "-debug") == 0) {
|
|
- debug = True;
|
|
+ app_data.debug = True;
|
|
break;
|
|
}
|
|
}
|