updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / openl2tp / gcc-4.6.patch
blob48e7575d4bb029eead5419cef51a04667000d726
1 diff -Naur src/openl2tp-1.8/usl/usl_timer.c src/openl2tp-1.8-fixed/usl/usl_timer.c
2 --- src/openl2tp-1.8/usl/usl_timer.c 2011-07-04 23:04:55.000000000 +0400
3 +++ src/openl2tp-1.8-fixed/usl/usl_timer.c 2011-07-04 23:08:01.000000000 +0400
4 @@ -88,14 +88,13 @@
5 */
6 void usl_timer_tick(void)
8 - int result;
9 char msg = '\0';
11 usl_tick++;
13 if (!usl_tick_pending) {
14 usl_tick_pending = 1;
15 - result = write(usl_tick_pipe[1], &msg, sizeof(msg));
16 + write(usl_tick_pipe[1], &msg, sizeof(msg));
20 @@ -112,11 +111,10 @@
21 struct usl_ord_list_head *tmp;
22 struct usl_list_head *iwalk;
23 struct usl_list_head *itmp;
24 - int result;
25 char msg;
26 USL_LIST_HEAD(expire_list);
28 - result = usl_fd_read(usl_tick_pipe[0], &msg, sizeof(msg));
29 + usl_fd_read(usl_tick_pipe[0], &msg, sizeof(msg));
30 usl_tick_pending = 0;
32 usl_list_for_each(walk, tmp, &usl_timer_list) {