blob: 596d391ae6bf8d61708d5a0117c757f736e2e486 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
$NetBSD: patch-bb,v 1.2 2005/12/11 20:35:41 joerg Exp $
--- main.c.orig 1996-11-07 16:01:43.000000000 +0000
+++ main.c
@@ -33,7 +33,7 @@ static char *_main_c_ident_ = "@(#)main.
bool_t exit_flag; /* Flag indicating end of application */
appdata_t app_data; /* Options data */
widgets_t widgets; /* Holder of all widgets */
-FILE *errfp = stderr;/* Error message stream */
+FILE *errfp;/* Error message stream */
/***********************
@@ -103,6 +103,7 @@ main(int argc, char **argv)
/* Initialize variables */
exit_flag = FALSE;
+ errfp = stderr;
/* Handle some signals */
signal(SIGINT, onsig);
@@ -159,7 +160,7 @@ main(int argc, char **argv)
post_realize_config(&widgets);
/* Register callback routines */
- register_callbacks(&widgets);
+ register_callbacks(&widgets, app);
/* Initialize screen controls */
mx_start(&widgets);
|