summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2003-06-24 18:43:11 +0000
committertedu <tedu@openbsd.org>2003-06-24 18:43:11 +0000
commitad6fc42ba09074abaefe6d10dc348473a30696b7 (patch)
tree0915d8a39ddbaf1b79c3a6343b71eaebaed9c6b7
parentdon't print "Binary file matches" with -q flag. from Sean Farley (diff)
downloadwireguard-openbsd-ad6fc42ba09074abaefe6d10dc348473a30696b7.tar.xz
wireguard-openbsd-ad6fc42ba09074abaefe6d10dc348473a30696b7.zip
tweak boolean test to be clear
-rw-r--r--usr.bin/grep/mmfile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/grep/mmfile.c b/usr.bin/grep/mmfile.c
index 2d66ddd671b..436edd72c24 100644
--- a/usr.bin/grep/mmfile.c
+++ b/usr.bin/grep/mmfile.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mmfile.c,v 1.5 2003/06/23 22:05:23 tedu Exp $ */
+/* $OpenBSD: mmfile.c,v 1.6 2003/06/24 18:43:11 tedu Exp $ */
/*-
* Copyright (c) 1999 James Howard and Dag-Erling Coïdan Smørgrav
@@ -89,7 +89,7 @@ mmfgetln(mmf_t *mmf, size_t *l)
if (mmf->ptr >= mmf->end)
return NULL;
- if ((lflag || qflag) &! boleol) {
+ if ((lflag || qflag) && !boleol) {
/* Find starting point to search. */
if (mmf->ptr == mmf->base)
p = mmf->ptr;