summaryrefslogtreecommitdiff
path: root/soltools/mkdepend/parse.c
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2012-10-09 17:01:14 +0200
committerLuboš Luňák <l.lunak@suse.cz>2012-10-09 17:25:29 +0200
commitf0eb45df5e3f59991102b2228a62d15baa397b59 (patch)
treeab62884be5f6ad7ecc4dfb1b0a27641a91e5e3a3 /soltools/mkdepend/parse.c
parent7c4d3ea6ba4d42b4dda5148a00c8c411b5d7703d (diff)
fix some lousy formatting that triggers warnings from the compiler plugin
Change-Id: I94cafba5363f24d608add6878c72f230f45fdb87
Diffstat (limited to 'soltools/mkdepend/parse.c')
-rw-r--r--soltools/mkdepend/parse.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/soltools/mkdepend/parse.c b/soltools/mkdepend/parse.c
index 939155aa3b83..0914fbc57ede 100644
--- a/soltools/mkdepend/parse.c
+++ b/soltools/mkdepend/parse.c
@@ -70,11 +70,9 @@ int find_includes(struct filepointer *filep, struct inclist *file, struct inclis
if (type == ELSE)
find_includes(filep, file,
file_red, recursion+1, recfailOK, incCollection, symbols);
- else
- if (type == ELIF)
+ else if (type == ELIF)
goto doif;
- else
- if ((type == ELIFFALSE) || (type == ELIFGUESSFALSE))
+ else if ((type == ELIFFALSE) || (type == ELIFGUESSFALSE))
goto doiffalse;
break;
case IFDEF:
@@ -398,14 +396,14 @@ void define( def, symbols )
/* Separate symbol name and its value */
val = def;
while (isalnum(*val) || *val == '_')
- val++;
+ val++;
if (*val)
- *val++ = '\0';
+ *val++ = '\0';
while (*val == ' ' || *val == '\t')
- val++;
+ val++;
if (!*val)
- val = "1";
+ val = "1";
hash_define( def, val, symbols );
}