Module Name:    src
Committed By:   rillig
Date:           Tue Feb  9 20:24:02 UTC 2021

Modified Files:
        src/tests/lib/libcurses/slave: commands.c

Log Message:
tests/libcurses: compare function names case-sensitive

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


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/tests/lib/libcurses/slave/commands.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tests/lib/libcurses/slave/commands.c
diff -u src/tests/lib/libcurses/slave/commands.c:1.7 src/tests/lib/libcurses/slave/commands.c:1.8
--- src/tests/lib/libcurses/slave/commands.c:1.7	Mon Feb  8 19:15:21 2021
+++ src/tests/lib/libcurses/slave/commands.c	Tue Feb  9 20:24:02 2021
@@ -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 <[email protected]>
@@ -58,7 +58,7 @@ command_execute(char *func, int nargs, c
 
 	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){

Reply via email to