diff options
Diffstat (limited to 'meta-networking/recipes-daemons/ippool/ippool/ippool_usl_timer.patch')
-rw-r--r-- | meta-networking/recipes-daemons/ippool/ippool/ippool_usl_timer.patch | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/meta-networking/recipes-daemons/ippool/ippool/ippool_usl_timer.patch b/meta-networking/recipes-daemons/ippool/ippool/ippool_usl_timer.patch new file mode 100644 index 000000000..ca0e3320c --- /dev/null +++ b/meta-networking/recipes-daemons/ippool/ippool/ippool_usl_timer.patch | |||
@@ -0,0 +1,49 @@ | |||
1 | include limits.h to avoid UINT_MAX undefined compiling error. | ||
2 | remove the unused assign which caused compiling error with -Werror. | ||
3 | |||
4 | Upstream-Status: Pending | ||
5 | |||
6 | Signed-off-by: Yao Zhao <yao.zhao@windriver.com> | ||
7 | --- | ||
8 | |||
9 | diff --git a/usl/usl_timer.c b/usl/usl_timer.c | ||
10 | index 734b820..fda752b 100644 | ||
11 | --- a/usl/usl_timer.c | ||
12 | +++ b/usl/usl_timer.c | ||
13 | @@ -42,6 +42,7 @@ | ||
14 | #include <signal.h> | ||
15 | #include <string.h> | ||
16 | #include <sys/time.h> | ||
17 | +#include <limits.h> | ||
18 | |||
19 | #include "usl.h" | ||
20 | |||
21 | @@ -87,14 +88,13 @@ void (*usl_timer_tick_hook)(void); | ||
22 | */ | ||
23 | void usl_timer_tick(void) | ||
24 | { | ||
25 | - int result; | ||
26 | char msg = '\0'; | ||
27 | |||
28 | usl_tick++; | ||
29 | |||
30 | if (!usl_tick_pending) { | ||
31 | usl_tick_pending = 1; | ||
32 | - result = write(usl_tick_pipe[1], &msg, sizeof(msg)); | ||
33 | + write(usl_tick_pipe[1], &msg, sizeof(msg)); | ||
34 | } | ||
35 | } | ||
36 | |||
37 | @@ -111,11 +111,10 @@ static void usl_timer_tick_handler(int fd, void *arg) | ||
38 | struct usl_ord_list_head *tmp; | ||
39 | struct usl_list_head *iwalk; | ||
40 | struct usl_list_head *itmp; | ||
41 | - int result; | ||
42 | char msg; | ||
43 | USL_LIST_HEAD(expire_list); | ||
44 | |||
45 | - result = usl_fd_read(usl_tick_pipe[0], &msg, sizeof(msg)); | ||
46 | + usl_fd_read(usl_tick_pipe[0], &msg, sizeof(msg)); | ||
47 | usl_tick_pending = 0; | ||
48 | |||
49 | usl_list_for_each(walk, tmp, &usl_timer_list) { | ||