Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libedit Fix misplaced parentheses (Ingo Schwarze)



details:   https://anonhg.NetBSD.org/src/rev/a470f2d9f3fa
branches:  trunk
changeset: 343339:a470f2d9f3fa
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Jan 30 04:02:51 2016 +0000

description:
Fix misplaced parentheses (Ingo Schwarze)

diffstat:

 lib/libedit/search.c    |  6 +++---
 lib/libedit/tokenizer.c |  6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (52 lines):

diff -r 45d6a5bd3c8f -r a470f2d9f3fa lib/libedit/search.c
--- a/lib/libedit/search.c      Sat Jan 30 03:38:39 2016 +0000
+++ b/lib/libedit/search.c      Sat Jan 30 04:02:51 2016 +0000
@@ -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 @@
        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
 }
 
diff -r 45d6a5bd3c8f -r a470f2d9f3fa lib/libedit/tokenizer.c
--- a/lib/libedit/tokenizer.c   Sat Jan 30 03:38:39 2016 +0000
+++ b/lib/libedit/tokenizer.c   Sat Jan 30 04:02:51 2016 +0000
@@ -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 @@
        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);
 }



Home | Main Index | Thread Index | Old Index