summaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-04-06 06:40:57 +0000
committerMike Frysinger <vapier@gentoo.org>2009-04-06 06:40:57 +0000
commit49e81cada73616864b9b31df0aeb6961c30f5a6e (patch)
treef5316027e30dae2fec813b48594a88c15532b34a /extra
parent98a06547a7c463fed1281bc99d72fd3bc4507b27 (diff)
apply getline() fix from linux kernel
Diffstat (limited to 'extra')
-rw-r--r--extra/scripts/unifdef.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/extra/scripts/unifdef.c b/extra/scripts/unifdef.c
index 0eb0d0900..5d1171e4d 100644
--- a/extra/scripts/unifdef.c
+++ b/extra/scripts/unifdef.c
@@ -206,7 +206,7 @@ static void done(void);
static void error(const char *);
static int findsym(const char *);
static void flushline(bool);
-static Linetype getline(void);
+static Linetype get_line(void);
static Linetype ifeval(const char **);
static void ignoreoff(void);
static void ignoreon(void);
@@ -517,7 +517,7 @@ process(void)
for (;;) {
linenum++;
- lineval = getline();
+ lineval = get_line();
trans_table[ifstate[depth]][lineval]();
debug("process %s -> %s depth %d",
linetype_name[lineval],
@@ -531,7 +531,7 @@ process(void)
* help from skipcomment().
*/
static Linetype
-getline(void)
+get_line(void)
{
const char *cp;
int cursym;
@@ -889,9 +889,8 @@ skipcomment(const char *cp)
cp += 1;
} else if (strchr(" \t", *cp) != NULL) {
cp += 1;
- } else {
+ } else
return (cp);
- }
continue;
case CXX_COMMENT:
if (strncmp(cp, "\n", 1) == 0) {