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

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

Log Message:
tests/libcurses: replace remaining strcasecmp with strcmp

There is no reason to write special functions in a different case than
the canonical one, just like for the regular curses functions.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 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.8 src/tests/lib/libcurses/slave/commands.c:1.9
--- src/tests/lib/libcurses/slave/commands.c:1.8	Tue Feb  9 20:24:02 2021
+++ src/tests/lib/libcurses/slave/commands.c	Tue Feb  9 20:39:20 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: commands.c,v 1.8 2021/02/09 20:24:02 rillig Exp $	*/
+/*	$NetBSD: commands.c,v 1.9 2021/02/09 20:39:20 rillig Exp $	*/
 
 /*-
  * Copyright 2009 Brett Lymn <[email protected]>
@@ -61,12 +61,12 @@ command_execute(char *func, int nargs, c
 		if (strcmp(func, commands[i].name) == 0) {
 			/* Check only restricted set of functions is called before
 			 * initscr/newterm */
-			if(!initdone){
+			if (!initdone){
 				j = 0;
-				while(j < nrcmds) {
-					if(strcasecmp(func, restricted_commands[j]) == 0){
-						if(strcasecmp(func, "initscr") == 0  ||
-							strcasecmp(func, "newterm") == 0)
+				while (j < nrcmds) {
+					if (strcmp(func, restricted_commands[j]) == 0) {
+						if (strcmp(func, "initscr") == 0  ||
+							strcmp(func, "newterm") == 0)
 							initdone = 1;
 						/* matched function */
 						commands[i].func(nargs, args);

Reply via email to