Module Name: src
Committed By: christos
Date: Sat Jan 30 04:02:51 UTC 2016
Modified Files:
src/lib/libedit: search.c tokenizer.c
Log Message:
Fix misplaced parentheses (Ingo Schwarze)
To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/lib/libedit/search.c
cvs rdiff -u -r1.21 -r1.22 src/lib/libedit/tokenizer.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libedit/search.c
diff -u src/lib/libedit/search.c:1.30 src/lib/libedit/search.c:1.31
--- src/lib/libedit/search.c:1.30 Tue Oct 4 11:27:04 2011
+++ src/lib/libedit/search.c Fri Jan 29 23:02:51 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: search.c,v 1.30 2011/10/04 15:27:04 christos Exp $ */
+/* $NetBSD: search.c,v 1.31 2016/01/30 04:02:51 christos Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)search.c 8.1 (Berkeley) 6/4/93";
#else
-__RCSID("$NetBSD: search.c,v 1.30 2011/10/04 15:27:04 christos Exp $");
+__RCSID("$NetBSD: search.c,v 1.31 2016/01/30 04:02:51 christos Exp $");
#endif
#endif /* not lint && not SCCSID */
@@ -147,7 +147,7 @@ el_match(const Char *str, const Char *pa
if (re_comp(ct_encode_string(pat, &conv)) != NULL)
return 0;
else
- return re_exec(ct_encode_string(str, &conv) == 1);
+ return re_exec(ct_encode_string(str, &conv)) == 1;
#endif
}
Index: src/lib/libedit/tokenizer.c
diff -u src/lib/libedit/tokenizer.c:1.21 src/lib/libedit/tokenizer.c:1.22
--- src/lib/libedit/tokenizer.c:1.21 Tue Aug 16 12:25:15 2011
+++ src/lib/libedit/tokenizer.c Fri Jan 29 23:02:51 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: tokenizer.c,v 1.21 2011/08/16 16:25:15 christos Exp $ */
+/* $NetBSD: tokenizer.c,v 1.22 2016/01/30 04:02:51 christos Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)tokenizer.c 8.1 (Berkeley) 6/4/93";
#else
-__RCSID("$NetBSD: tokenizer.c,v 1.21 2011/08/16 16:25:15 christos Exp $");
+__RCSID("$NetBSD: tokenizer.c,v 1.22 2016/01/30 04:02:51 christos Exp $");
#endif
#endif /* not lint && not SCCSID */
@@ -446,5 +446,5 @@ FUN(tok,str)(TYPE(Tokenizer) *tok, const
memset(&li, 0, sizeof(li));
li.buffer = line;
li.cursor = li.lastchar = Strchr(line, '\0');
- return FUN(tok,line(tok, &li, argc, argv, NULL, NULL));
+ return FUN(tok,line)(tok, &li, argc, argv, NULL, NULL);
}