opnsense-ports/audio/xcdplayer/files/patch-main.c
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

29 lines
466 B
C

--- main.c.orig Tue Jan 12 19:59:36 1993
+++ main.c Wed May 30 19:19:53 2007
@@ -23,12 +23,15 @@
Widget top_form;
-void
+extern AppData app_data;
+
+static void chk_debug();
+
+int
main(argc, argv)
int argc;
char **argv;
{
- static void chk_debug();
chk_debug(argc, argv);
@@ -66,7 +69,7 @@
/* ugly hack */
for (i = 1; i < argc; i++) {
if (strcmp(argv[i], "-debug") == 0) {
- debug = True;
+ app_data.debug = True;
break;
}
}