Source-Changes-HG archive

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

[src/trunk]: src/tests/lib/libcurses/slave tests/libcurses: compare function ...



details:   https://anonhg.NetBSD.org/src/rev/0644bb8dc16f
branches:  trunk
changeset: 951974:0644bb8dc16f
user:      rillig <rillig%NetBSD.org@localhost>
date:      Tue Feb 09 20:24:02 2021 +0000

description:
tests/libcurses: compare function names case-sensitive

There is absolutely no reason to write function names in upper case or
mixed case.

diffstat:

 tests/lib/libcurses/slave/commands.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 838be7003a33 -r 0644bb8dc16f tests/lib/libcurses/slave/commands.c
--- a/tests/lib/libcurses/slave/commands.c      Tue Feb 09 20:22:11 2021 +0000
+++ b/tests/lib/libcurses/slave/commands.c      Tue Feb 09 20:24:02 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: commands.c,v 1.7 2021/02/08 19:15:21 rillig Exp $      */
+/*     $NetBSD: commands.c,v 1.8 2021/02/09 20:24:02 rillig Exp $      */
 
 /*-
  * Copyright 2009 Brett Lymn <blymn%NetBSD.org@localhost>
@@ -58,7 +58,7 @@
 
        i = 0;
        while (i < ncmds) {
-               if (strcasecmp(func, commands[i].name) == 0) {
+               if (strcmp(func, commands[i].name) == 0) {
                        /* Check only restricted set of functions is called before
                         * initscr/newterm */
                        if(!initdone){



Home | Main Index | Thread Index | Old Index