From 13685eeec2456c781616eed7a4e0b8a7934ab383 Mon Sep 17 00:00:00 2001 From: David Malone Date: Sat, 13 Apr 2002 20:59:48 +0000 Subject: [PATCH] Fix up vendor IDs. Put a sequence point between writing to a variable and using it. --- usr.bin/tail/reverse.c | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/usr.bin/tail/reverse.c b/usr.bin/tail/reverse.c index d4ce69d2e542..d8c45e99fd24 100644 --- a/usr.bin/tail/reverse.c +++ b/usr.bin/tail/reverse.c @@ -34,14 +34,15 @@ * SUCH DAMAGE. */ -#include - -__FBSDID("$FreeBSD$"); - +#if 0 #ifndef lint -static const char sccsid[] = "@(#)reverse.c 8.1 (Berkeley) 6/6/93"; +static char sccsid[] = "@(#)reverse.c 8.1 (Berkeley) 6/6/93"; +#endif /* not lint */ #endif +#include +__FBSDID("$FreeBSD$"); + #include #include #include @@ -221,8 +222,10 @@ r_buf(fp) tl->prev = mark->prev; mark->prev->next = tl; mark->prev = tl; - } else - mark->next = mark->prev = (mark = tl); + } else { + mark = tl; + mark->next = mark->prev = mark; + } /* Fill the block with input data. */ for (p = tl->l, len = 0;