summaryrefslogtreecommitdiff
path: root/extra/scripts/unifdef.c
diff options
context:
space:
mode:
Diffstat (limited to 'extra/scripts/unifdef.c')
-rw-r--r--extra/scripts/unifdef.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/extra/scripts/unifdef.c b/extra/scripts/unifdef.c
index b159df0a6..a65355366 100644
--- a/extra/scripts/unifdef.c
+++ b/extra/scripts/unifdef.c
@@ -1098,7 +1098,7 @@ skiphash(void)
const char *cp;
linenum++;
- if (fgets(tline, MAXLINE, input) == NULL) {
+ if (linestate == LS_START && fgets(tline, MAXLINE, input) == NULL) {
if (ferror(input))
err(2, "can't read %s", filename);
else
@@ -1458,9 +1458,7 @@ static bool
defundef(void)
{
const char *cp, *kw, *sym, *val, *end;
- Comment_state wascomment;
- wascomment = incomment;
cp = skiphash();
if (cp == NULL)
return (false);