summaryrefslogtreecommitdiff
path: root/usr.bin/grep/mmfile.c
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2003-06-24 18:43:12 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2003-06-24 18:43:12 +0000
commit0191546c78c851e2141ed446f323933bfc043999 (patch)
tree8dfa5c2ddc347dfd54a3561063f33cf573d3e4d6 /usr.bin/grep/mmfile.c
parentc44e8aaecb152c728539af2a43be1b9132b65ab6 (diff)
tweak boolean test to be clear
Diffstat (limited to 'usr.bin/grep/mmfile.c')
-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;