Skip to content

Commit b5b9159

Browse files
committed
Remove unnecessary variable in main
1 parent 3625330 commit b5b9159

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: chapter06/6-6.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ int main (void)
250250
char word[MAXWORD];
251251
char defn[MAXLEN];
252252
char *name, *keyword = "#define";
253-
int ctrline, len;
253+
int ctrline;
254254

255255
name = word; /* unnecessary. Added for clarity */
256256

@@ -259,8 +259,8 @@ int main (void)
259259
if (word[0] == '#' && !ctrline) {
260260
if (strcmp(word, keyword) == 0)
261261
ctrline = 1; /* found processor control line */
262-
} else if (ctrline) { /* parse name and definition */
263-
len = getLine(defn, MAXLEN);
262+
} else if (ctrline) { /* parse name and definition */
263+
getLine(defn, MAXLEN);
264264
install(name, defn);
265265
ctrline = 0;
266266
}

0 commit comments

Comments
 (0)