diff options
author | dwmalone <dwmalone@FreeBSD.org> | 2002-04-13 20:59:48 +0000 |
---|---|---|
committer | dwmalone <dwmalone@FreeBSD.org> | 2002-04-13 20:59:48 +0000 |
commit | ec9302ee877ac6dec15ddbddebf64cfc32b9ec60 (patch) | |
tree | 06b381c8f95fdfd7837c9abb4a2436c38eb53dcd /usr.bin/tail | |
parent | a0622efd75342d0f7c0a4ed679401462cda6b42e (diff) | |
download | FreeBSD-src-ec9302ee877ac6dec15ddbddebf64cfc32b9ec60.zip FreeBSD-src-ec9302ee877ac6dec15ddbddebf64cfc32b9ec60.tar.gz |
Fix up vendor IDs.
Put a sequence point between writing to a variable and using it.
Diffstat (limited to 'usr.bin/tail')
-rw-r--r-- | usr.bin/tail/reverse.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/usr.bin/tail/reverse.c b/usr.bin/tail/reverse.c index d4ce69d..d8c45e9 100644 --- a/usr.bin/tail/reverse.c +++ b/usr.bin/tail/reverse.c @@ -34,14 +34,15 @@ * SUCH DAMAGE. */ -#include <sys/cdefs.h> - -__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 <sys/cdefs.h> +__FBSDID("$FreeBSD$"); + #include <sys/param.h> #include <sys/stat.h> #include <sys/mman.h> @@ -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; |