kernel: check return code of nla_parse in pcomp_lzma on 2.6.31
[openwrt.git] / target / linux / generic-2.6 / patches-2.6.28 / 906-unifdef_getline.patch
1 --- a/scripts/unifdef.c
2 +++ b/scripts/unifdef.c
3 @@ -206,7 +206,11 @@ static void done(void);
4 static void error(const char *);
5 static int findsym(const char *);
6 static void flushline(bool);
7 -static Linetype getline(void);
8 +#ifndef __CYGWIN__
9 +static Linetype __getline(void);
10 +#else
11 +static Linetype get_line(void);
12 +#endif
13 static Linetype ifeval(const char **);
14 static void ignoreoff(void);
15 static void ignoreon(void);
16 @@ -512,7 +516,11 @@ process(void)
17
18 for (;;) {
19 linenum++;
20 - lineval = getline();
21 +#ifndef __CYGWIN__
22 + lineval = __getline();
23 +#else
24 + lineval = get_line();
25 +#endif
26 trans_table[ifstate[depth]][lineval]();
27 debug("process %s -> %s depth %d",
28 linetype_name[lineval],
29 @@ -526,7 +534,11 @@ process(void)
30 * help from skipcomment().
31 */
32 static Linetype
33 -getline(void)
34 +#ifndef __CYGWIN__
35 +__getline(void)
36 +#else
37 +get_line(void)
38 +#endif
39 {
40 const char *cp;
41 int cursym;
This page took 0.042291 seconds and 5 git commands to generate.