]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
look: remove extra semicolon
authorSami Kerola <kerolasa@iki.fi>
Sat, 14 Jul 2012 21:50:15 +0000 (23:50 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 16 Jul 2012 16:18:21 +0000 (18:18 +0200)
The both macro SKIP_PAST_NEWLINE and location where macro is used will
not need semicolon at the end of line.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
misc-utils/look.c

index de231c96eb6281b890d446fe20ab5a4a6de76914..351d0072a8b790875b7bfd10d7884c265cbd82fd 100644 (file)
@@ -243,7 +243,7 @@ look(char *front, char *back)
  *     more trouble than it's worth.
  */
 #define        SKIP_PAST_NEWLINE(p, back) \
-       while (p < back && *p++ != '\n');
+       while (p < back && *p++ != '\n')
 
 char *
 binary_search(char *front, char *back)