Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/look Don't use while-loop with empty body.
details: https://anonhg.NetBSD.org/src/rev/ac75b229eda4
branches: trunk
changeset: 777582:ac75b229eda4
user: joerg <joerg%NetBSD.org@localhost>
date: Thu Feb 23 22:57:53 2012 +0000
description:
Don't use while-loop with empty body.
diffstat:
usr.bin/look/look.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 0251de694124 -r ac75b229eda4 usr.bin/look/look.c
--- a/usr.bin/look/look.c Thu Feb 23 22:33:33 2012 +0000
+++ b/usr.bin/look/look.c Thu Feb 23 22:57:53 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: look.c,v 1.15 2011/09/04 20:29:32 joerg Exp $ */
+/* $NetBSD: look.c,v 1.16 2012/02/23 22:57:53 joerg Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -42,7 +42,7 @@
#if 0
static char sccsid[] = "@(#)look.c 8.2 (Berkeley) 5/4/95";
#endif
-__RCSID("$NetBSD: look.c,v 1.15 2011/09/04 20:29:32 joerg Exp $");
+__RCSID("$NetBSD: look.c,v 1.16 2012/02/23 22:57:53 joerg Exp $");
#endif /* not lint */
/*
@@ -218,7 +218,7 @@
* more trouble than it's worth.
*/
#define SKIP_PAST_NEWLINE(p, back) \
- while (p < back && *p++ != '\n');
+ while (p < back && *p++ != '\n') continue;
static char *
binary_search(char *string, char *front, char *back)
Home |
Main Index |
Thread Index |
Old Index