Line 0
Link Here
|
|
|
1 |
--- src/input.c.orig Sat Nov 29 14:05:28 2003 |
2 |
+++ src/input.c Sun Nov 30 13:24:14 2003 |
3 |
@@ -15,7 +15,7 @@ |
4 |
* No warranty is made or implied. You use this program at your own risk. |
5 |
*/ |
6 |
|
7 |
-#include <asm/errno.h> |
8 |
+#include <errno.h> |
9 |
#include <config.h> |
10 |
#include <enums.h> |
11 |
#include <fcntl.h> |
12 |
@@ -76,8 +76,12 @@ |
13 |
static gchar channel_numbers[MAX_STR][10]; /* string containing integers */ |
14 |
#endif |
15 |
GtkWidget *errbox; |
16 |
+GtkWidget *label; |
17 |
int errorbox_up; |
18 |
gint tag; /* Used by gdk_input_* */ |
19 |
+gint timeo; |
20 |
+gint res; |
21 |
+gint to_get; |
22 |
|
23 |
/*--- globals to this file */ |
24 |
|
25 |
@@ -151,7 +155,6 @@ |
26 |
|
27 |
/* The rest is error handling */ |
28 |
|
29 |
- GtkWidget *label; |
30 |
if (errorbox_up) |
31 |
return(-1); /* ERROR window already onscreen */ |
32 |
errbox = gtk_window_new(GTK_WINDOW_DIALOG); |
33 |
@@ -380,9 +383,9 @@ |
34 |
struct pollfd ufds; |
35 |
ufds.fd = source; |
36 |
ufds.events = POLLIN; |
37 |
- gint timeo = 100; /* wait 100ms max before timeout */ |
38 |
- gint res = -1; |
39 |
- gint to_get = 0; |
40 |
+ timeo = 100; /* wait 100ms max before timeout */ |
41 |
+ res = -1; |
42 |
+ to_get = 0; |
43 |
|
44 |
/* reset data ring buffer */ |
45 |
ring_pos=0; |