Lines 1-20
Link Here
|
1 |
--- src/input.c.orig Sat Nov 29 14:05:28 2003 |
1 |
--- src/input.c.orig Mon Aug 23 23:35:00 2004 |
2 |
+++ src/input.c Sun Nov 30 13:24:14 2003 |
2 |
+++ src/input.c Sun Oct 31 00:44:56 2004 |
3 |
@@ -15,7 +15,7 @@ |
3 |
@@ -52,8 +52,12 @@ |
4 |
* No warranty is made or implied. You use this program at your own risk. |
4 |
} handles[MAX_HANDLES]; |
5 |
*/ |
|
|
6 |
|
5 |
|
7 |
-#include <asm/errno.h> |
6 |
static GtkWidget *errbox; |
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; |
7 |
+GtkWidget *label; |
17 |
int errorbox_up; |
8 |
static int errorbox_up =0; |
18 |
gint tag; /* Used by gdk_input_* */ |
9 |
gint tag; /* Used by gdk_input_* */ |
19 |
+gint timeo; |
10 |
+gint timeo; |
20 |
+gint res; |
11 |
+gint res; |
Lines 22-36
Link Here
|
22 |
|
13 |
|
23 |
/*--- globals to this file */ |
14 |
/*--- globals to this file */ |
24 |
|
15 |
|
25 |
@@ -151,7 +155,6 @@ |
16 |
@@ -295,7 +299,6 @@ |
26 |
|
17 |
|
27 |
/* The rest is error handling */ |
18 |
/* The rest is error handling */ |
28 |
|
19 |
|
29 |
- GtkWidget *label; |
20 |
- GtkWidget *label; |
30 |
if (errorbox_up) |
21 |
if (errorbox_up) |
31 |
return(-1); /* ERROR window already onscreen */ |
22 |
return(-1); /* ERROR window already onscreen */ |
32 |
errbox = gtk_window_new(GTK_WINDOW_DIALOG); |
23 |
errbox = gtk_window_new(GTK_WINDOW_DIALOG); |
33 |
@@ -380,9 +383,9 @@ |
24 |
@@ -536,9 +539,9 @@ |
34 |
struct pollfd ufds; |
25 |
struct pollfd ufds; |
35 |
ufds.fd = source; |
26 |
ufds.fd = source; |
36 |
ufds.events = POLLIN; |
27 |
ufds.events = POLLIN; |
Lines 41-45
Link Here
|
41 |
+ res = -1; |
32 |
+ res = -1; |
42 |
+ to_get = 0; |
33 |
+ to_get = 0; |
43 |
|
34 |
|
44 |
/* reset data ring buffer */ |
35 |
/* adjust position in ring buffer to be on first channel */ |
45 |
ring_pos=0; |
36 |
ring_pos -= ring_pos%ring_channels; |