Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/lib/libcurses tests/libcurses: add missing space after...
details: https://anonhg.NetBSD.org/src/rev/0326b8872036
branches: trunk
changeset: 951977:0326b8872036
user: rillig <rillig%NetBSD.org@localhost>
date: Tue Feb 09 20:42:31 2021 +0000
description:
tests/libcurses: add missing space after control flow keywords
diffstat:
tests/lib/libcurses/director/director.c | 4 ++--
tests/lib/libcurses/director/testlang_parse.y | 10 +++++-----
tests/lib/libcurses/slave/commands.c | 4 ++--
tests/lib/libcurses/slave/slave.c | 6 +++---
tests/lib/libcurses/t_curses.sh | 3 ++-
5 files changed, 14 insertions(+), 13 deletions(-)
diffs (115 lines):
diff -r c42ccabb551e -r 0326b8872036 tests/lib/libcurses/director/director.c
--- a/tests/lib/libcurses/director/director.c Tue Feb 09 20:39:20 2021 +0000
+++ b/tests/lib/libcurses/director/director.c Tue Feb 09 20:42:31 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: director.c,v 1.17 2021/02/08 19:15:20 rillig Exp $ */
+/* $NetBSD: director.c,v 1.18 2021/02/09 20:42:31 rillig Exp $ */
/*-
* Copyright 2009 Brett Lymn <blymn%NetBSD.org@localhost>
@@ -142,7 +142,7 @@
check_file_flag = 0;
while ((ch = getopt(argc, argv, "vgfC:I:p:s:t:T:")) != -1) {
- switch(ch) {
+ switch (ch) {
case 'I':
include_path = optarg;
break;
diff -r c42ccabb551e -r 0326b8872036 tests/lib/libcurses/director/testlang_parse.y
--- a/tests/lib/libcurses/director/testlang_parse.y Tue Feb 09 20:39:20 2021 +0000
+++ b/tests/lib/libcurses/director/testlang_parse.y Tue Feb 09 20:42:31 2021 +0000
@@ -1,5 +1,5 @@
%{
-/* $NetBSD: testlang_parse.y,v 1.43 2021/02/08 23:54:03 rillig Exp $ */
+/* $NetBSD: testlang_parse.y,v 1.44 2021/02/09 20:42:31 rillig Exp $ */
/*-
* Copyright 2009 Brett Lymn <blymn%NetBSD.org@localhost>
@@ -1116,7 +1116,7 @@
fds[1].events = POLLOUT;
p = input_str;
save_slave_output(false);
- while(*p != '\0') {
+ while (*p != '\0') {
perform_delay(&delay_spec);
if (poll(fds, 2, 0) < 0)
@@ -1774,11 +1774,11 @@
wchar_t *p;
p = expected;
- while(*p++ != L'\0')
+ while (*p++ != L'\0')
len1++;
p = value;
- while(*p++ != L'\0')
+ while (*p++ != L'\0')
len2++;
/*
@@ -2036,7 +2036,7 @@
save_slave_output(false);
}
}
- while((rfd[1].revents & POLLIN) == POLLIN);
+ while ((rfd[1].revents & POLLIN) == POLLIN);
if (read(slvpipe[READ_PIPE], &type, sizeof(int)) < 0)
err(1, "command pipe read for type failed");
diff -r c42ccabb551e -r 0326b8872036 tests/lib/libcurses/slave/commands.c
--- a/tests/lib/libcurses/slave/commands.c Tue Feb 09 20:39:20 2021 +0000
+++ b/tests/lib/libcurses/slave/commands.c Tue Feb 09 20:42:31 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: commands.c,v 1.9 2021/02/09 20:39:20 rillig Exp $ */
+/* $NetBSD: commands.c,v 1.10 2021/02/09 20:42:31 rillig Exp $ */
/*-
* Copyright 2009 Brett Lymn <blymn%NetBSD.org@localhost>
@@ -61,7 +61,7 @@
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 (strcmp(func, restricted_commands[j]) == 0) {
diff -r c42ccabb551e -r 0326b8872036 tests/lib/libcurses/slave/slave.c
--- a/tests/lib/libcurses/slave/slave.c Tue Feb 09 20:39:20 2021 +0000
+++ b/tests/lib/libcurses/slave/slave.c Tue Feb 09 20:42:31 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: slave.c,v 1.9 2021/02/08 19:15:21 rillig Exp $ */
+/* $NetBSD: slave.c,v 1.10 2021/02/09 20:42:31 rillig Exp $ */
/*-
* Copyright 2009 Brett Lymn <blymn%NetBSD.org@localhost>
@@ -64,7 +64,7 @@
if ((cmdbuf = malloc(maxlen)) == NULL)
err(1, "slave cmdbuf malloc failed");
- while(1) {
+ while (1) {
if (read(cmdpipe[READ_PIPE], &type, sizeof(int)) < 0)
err(1, "slave command type read failed");
@@ -140,7 +140,7 @@
argslen++;
}
}
- while(len >= 0);
+ while (len >= 0);
command_execute(cmdbuf, argslen, args);
diff -r c42ccabb551e -r 0326b8872036 tests/lib/libcurses/t_curses.sh
--- a/tests/lib/libcurses/t_curses.sh Tue Feb 09 20:39:20 2021 +0000
+++ b/tests/lib/libcurses/t_curses.sh Tue Feb 09 20:42:31 2021 +0000
@@ -1,4 +1,5 @@
-h_run(){
+h_run()
+{
file=$1
if [ -z "$2" ]; then
export LC_ALL=C
Home |
Main Index |
Thread Index |
Old Index