CVS commit: src/tests/usr.bin/xlint/lint1

2021-10-09 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Oct 9 22:03:38 UTC 2021 Modified Files: src/tests/usr.bin/xlint/lint1: msg_230.c msg_230.exp Log Message: tests/lint: demonstrate wrong warning about nonportable char comparison Seen in bin/sh/expand.c:273. To generate a

CVS commit: src/tests/usr.bin/xlint/lint1

2021-10-09 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Oct 9 22:03:38 UTC 2021 Modified Files: src/tests/usr.bin/xlint/lint1: msg_230.c msg_230.exp Log Message: tests/lint: demonstrate wrong warning about nonportable char comparison Seen in bin/sh/expand.c:273. To generate a

CVS commit: src

2021-10-09 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Oct 9 21:56:12 UTC 2021 Modified Files: src/tests/usr.bin/xlint/lint1: msg_230.c msg_230.exp src/usr.bin/xlint/lint1: err.c tree.c Log Message: lint: add more details to warning about nonportable character comparison

CVS commit: src

2021-10-09 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Oct 9 21:56:12 UTC 2021 Modified Files: src/tests/usr.bin/xlint/lint1: msg_230.c msg_230.exp src/usr.bin/xlint/lint1: err.c tree.c Log Message: lint: add more details to warning about nonportable character comparison

CVS commit: src/bin/dd

2021-10-09 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Oct 9 21:31:36 UTC 2021 Modified Files: src/bin/dd: args.c Log Message: dd: fix lint warnings about effectively discarding 'const' args.c(153): warning: call to 'bsearch' effectively discards 'const' from argument [346]

CVS commit: src/bin/dd

2021-10-09 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Oct 9 21:31:36 UTC 2021 Modified Files: src/bin/dd: args.c Log Message: dd: fix lint warnings about effectively discarding 'const' args.c(153): warning: call to 'bsearch' effectively discards 'const' from argument [346]

CVS commit: src/tests/usr.bin/xlint/lint1

2021-10-09 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Oct 9 21:25:39 UTC 2021 Modified Files: src/tests/usr.bin/xlint/lint1: msg_160.c msg_160.exp msg_323.c msg_323.exp Log Message: tests/lint: add examples for bogus warning 160 and for error 323 To generate a

CVS commit: src/tests/usr.bin/xlint/lint1

2021-10-09 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Oct 9 21:25:39 UTC 2021 Modified Files: src/tests/usr.bin/xlint/lint1: msg_160.c msg_160.exp msg_323.c msg_323.exp Log Message: tests/lint: add examples for bogus warning 160 and for error 323 To generate a

CVS commit: src/bin

2021-10-09 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Oct 9 21:06:31 UTC 2021 Modified Files: src/bin: Makefile.inc src/bin/sh: Makefile Log Message: bin: in builds with MKLINT=yes, run lint on all programs To generate a diff of this commit: cvs rdiff -u -r1.17 -r1.18

CVS commit: src/bin

2021-10-09 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Oct 9 21:06:31 UTC 2021 Modified Files: src/bin: Makefile.inc src/bin/sh: Makefile Log Message: bin: in builds with MKLINT=yes, run lint on all programs To generate a diff of this commit: cvs rdiff -u -r1.17 -r1.18

CVS commit: src/bin/sh

2021-10-09 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Oct 9 21:02:53 UTC 2021 Modified Files: src/bin/sh: Makefile Log Message: sh: ignore lint error about 'continue' in 'do while' loop exec.c(575): error: continue in 'do ... while (0)' loop [323] jobs.c(203): error: continue

CVS commit: src/bin/sh

2021-10-09 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Oct 9 21:02:53 UTC 2021 Modified Files: src/bin/sh: Makefile Log Message: sh: ignore lint error about 'continue' in 'do while' loop exec.c(575): error: continue in 'do ... while (0)' loop [323] jobs.c(203): error: continue

CVS commit: src/sys/arch/luna68k/dev

2021-10-09 Thread Izumi Tsutsui
Module Name:src Committed By: tsutsui Date: Sat Oct 9 20:59:47 UTC 2021 Modified Files: src/sys/arch/luna68k/dev: lunaws.c Log Message: Handle wskbd(9) .set_leds op in cngetc(9) using wskbd_cnattach(9) cookie. XXX1: LUNA's keyboards emulate "mechanical lock" for CAP and

CVS commit: src/sys/arch/luna68k/dev

2021-10-09 Thread Izumi Tsutsui
Module Name:src Committed By: tsutsui Date: Sat Oct 9 20:59:47 UTC 2021 Modified Files: src/sys/arch/luna68k/dev: lunaws.c Log Message: Handle wskbd(9) .set_leds op in cngetc(9) using wskbd_cnattach(9) cookie. XXX1: LUNA's keyboards emulate "mechanical lock" for CAP and

CVS commit: src/bin/dd

2021-10-09 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Oct 9 20:44:55 UTC 2021 Modified Files: src/bin/dd: misc.c Log Message: dd: clean up function summary No functional change. Ideally the binary would have stayed the same, but GCC 10.3.0 inserts a nop and reorders the code.

CVS commit: src/bin/dd

2021-10-09 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Oct 9 20:44:55 UTC 2021 Modified Files: src/bin/dd: misc.c Log Message: dd: clean up function summary No functional change. Ideally the binary would have stayed the same, but GCC 10.3.0 inserts a nop and reorders the code.

CVS commit: src/bin/dd

2021-10-09 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Oct 9 20:29:23 UTC 2021 Modified Files: src/bin/dd: misc.c Log Message: dd: fix lint error about 'return expr' from void function No change to the resulting binary. The 'return' statements are necessary for GCC to generate

CVS commit: src/bin/dd

2021-10-09 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Oct 9 20:29:23 UTC 2021 Modified Files: src/bin/dd: misc.c Log Message: dd: fix lint error about 'return expr' from void function No change to the resulting binary. The 'return' statements are necessary for GCC to generate

CVS commit: src/usr.bin/indent

2021-10-09 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Oct 9 20:07:37 UTC 2021 Modified Files: src/usr.bin/indent: lexi.c Log Message: indent: fix lint warning about bsearch discarding 'const' lexi.c(433): warning: call to 'bsearch' effectively discards 'const' from

CVS commit: src/usr.bin/indent

2021-10-09 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Oct 9 20:07:37 UTC 2021 Modified Files: src/usr.bin/indent: lexi.c Log Message: indent: fix lint warning about bsearch discarding 'const' lexi.c(433): warning: call to 'bsearch' effectively discards 'const' from

CVS commit: src

2021-10-09 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Oct 9 20:03:20 UTC 2021 Modified Files: src/tests/usr.bin/xlint/lint1: msg_346.c msg_346.exp src/usr.bin/xlint/lint1: tree.c Log Message: lint: warn that bsearch effectively discards 'const' Just like strchr,

CVS commit: src

2021-10-09 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Oct 9 20:03:20 UTC 2021 Modified Files: src/tests/usr.bin/xlint/lint1: msg_346.c msg_346.exp src/usr.bin/xlint/lint1: tree.c Log Message: lint: warn that bsearch effectively discards 'const' Just like strchr,

CVS commit: src/sys/arch

2021-10-09 Thread Izumi Tsutsui
Module Name:src Committed By: tsutsui Date: Sat Oct 9 20:00:42 UTC 2021 Modified Files: src/sys/arch/atari/atari: machdep.c src/sys/arch/cesfic/cesfic: machdep.c src/sys/arch/hp300/hp300: machdep.c src/sys/arch/luna68k/luna68k: machdep.c

CVS commit: src/sys/arch

2021-10-09 Thread Izumi Tsutsui
Module Name:src Committed By: tsutsui Date: Sat Oct 9 20:00:42 UTC 2021 Modified Files: src/sys/arch/atari/atari: machdep.c src/sys/arch/cesfic/cesfic: machdep.c src/sys/arch/hp300/hp300: machdep.c src/sys/arch/luna68k/luna68k: machdep.c

CVS commit: src/tests/usr.bin/xlint/lint1

2021-10-09 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Oct 9 19:18:53 UTC 2021 Modified Files: src/tests/usr.bin/xlint/lint1: msg_346.c Log Message: tests/lint: test effective unconst cast using bsearch Seen in usr.bin/indent/lexi.c, function lexi. To generate a diff of this

CVS commit: src/tests/usr.bin/xlint/lint1

2021-10-09 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Oct 9 19:18:53 UTC 2021 Modified Files: src/tests/usr.bin/xlint/lint1: msg_346.c Log Message: tests/lint: test effective unconst cast using bsearch Seen in usr.bin/indent/lexi.c, function lexi. To generate a diff of this

CVS commit: src

2021-10-09 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Oct 9 14:22:42 UTC 2021 Modified Files: src/tests/usr.bin/xlint/lint1: msg_338.c msg_338.exp src/usr.bin/xlint/lint1: ckgetopt.c Log Message: lint: warn if a getopt switch tries to handle unreachable ':' To

CVS commit: src

2021-10-09 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Oct 9 14:22:42 UTC 2021 Modified Files: src/tests/usr.bin/xlint/lint1: msg_338.c msg_338.exp src/usr.bin/xlint/lint1: ckgetopt.c Log Message: lint: warn if a getopt switch tries to handle unreachable ':' To

CVS commit: src/tests/usr.bin/xlint/lint1

2021-10-09 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Oct 9 13:57:55 UTC 2021 Modified Files: src/tests/usr.bin/xlint/lint1: msg_338.c msg_338.exp Log Message: tests/lint: test getopt with an options string starting with ':' To generate a diff of this commit: cvs rdiff -u

CVS commit: src/tests/usr.bin/xlint/lint1

2021-10-09 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Oct 9 13:57:55 UTC 2021 Modified Files: src/tests/usr.bin/xlint/lint1: msg_338.c msg_338.exp Log Message: tests/lint: test getopt with an options string starting with ':' To generate a diff of this commit: cvs rdiff -u

CVS commit: src/sys/stand/efiboot

2021-10-09 Thread Jared D. McNeill
Module Name:src Committed By: jmcneill Date: Sat Oct 9 13:09:17 UTC 2021 Modified Files: src/sys/stand/efiboot: boot.c Log Message: efiboot: add "setup" command The "setup" command sets the 64-bit "OsIndications" variable to the value of EFI_OS_INDICATIONS_BOOT_TO_FW_UI

CVS commit: src/sys/stand/efiboot

2021-10-09 Thread Jared D. McNeill
Module Name:src Committed By: jmcneill Date: Sat Oct 9 13:09:17 UTC 2021 Modified Files: src/sys/stand/efiboot: boot.c Log Message: efiboot: add "setup" command The "setup" command sets the 64-bit "OsIndications" variable to the value of EFI_OS_INDICATIONS_BOOT_TO_FW_UI

CVS commit: src/usr.bin/indent

2021-10-09 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Oct 9 11:13:25 UTC 2021 Modified Files: src/usr.bin/indent: indent.c io.c Log Message: indent: condense code for calculating indentations No functional change. To generate a diff of this commit: cvs rdiff -u -r1.136

CVS commit: src/usr.bin/indent

2021-10-09 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Oct 9 11:13:25 UTC 2021 Modified Files: src/usr.bin/indent: indent.c io.c Log Message: indent: condense code for calculating indentations No functional change. To generate a diff of this commit: cvs rdiff -u -r1.136

CVS commit: src/usr.bin/indent

2021-10-09 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Oct 9 11:00:27 UTC 2021 Modified Files: src/usr.bin/indent: indent.c indent.h io.c pr_comment.c Log Message: indent: extract common code for advancing a single tab No functional change. To generate a diff of this commit:

CVS commit: src/usr.bin/indent

2021-10-09 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Oct 9 11:00:27 UTC 2021 Modified Files: src/usr.bin/indent: indent.c indent.h io.c pr_comment.c Log Message: indent: extract common code for advancing a single tab No functional change. To generate a diff of this commit:

CVS commit: src/tests/usr.bin/indent

2021-10-09 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Oct 9 10:56:13 UTC 2021 Modified Files: src/tests/usr.bin/indent: token-preprocessing.0 token-preprocessing.0.stdout Log Message: tests/indent: test fixing of invalid preprocessor directives To generate a diff

CVS commit: src/tests/usr.bin/indent

2021-10-09 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Oct 9 10:56:13 UTC 2021 Modified Files: src/tests/usr.bin/indent: token-preprocessing.0 token-preprocessing.0.stdout Log Message: tests/indent: test fixing of invalid preprocessor directives To generate a diff

CVS commit: src/usr.bin/ftp

2021-10-09 Thread Luke Mewburn
Module Name:src Committed By: lukem Date: Sat Oct 9 09:07:21 UTC 2021 Modified Files: src/usr.bin/ftp: main.c Log Message: ftp: fix -? more portably Start the optstring with ":" (which implicitly disables opterr), and handle '?' with optopt=='?' separately to ':'. Fixes

CVS commit: src/usr.bin/ftp

2021-10-09 Thread Luke Mewburn
Module Name:src Committed By: lukem Date: Sat Oct 9 09:07:21 UTC 2021 Modified Files: src/usr.bin/ftp: main.c Log Message: ftp: fix -? more portably Start the optstring with ":" (which implicitly disables opterr), and handle '?' with optopt=='?' separately to ':'. Fixes

CVS commit: src/usr.sbin/sysinst

2021-10-09 Thread Martin Husemann
Module Name:src Committed By: martin Date: Sat Oct 9 09:06:28 UTC 2021 Modified Files: src/usr.sbin/sysinst: configmenu.c Log Message: Consistent #if for static helper function add_entropy To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14

CVS commit: src/usr.sbin/sysinst

2021-10-09 Thread Martin Husemann
Module Name:src Committed By: martin Date: Sat Oct 9 09:06:28 UTC 2021 Modified Files: src/usr.sbin/sysinst: configmenu.c Log Message: Consistent #if for static helper function add_entropy To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14

CVS commit: src/share/man/man4/man4.amiga

2021-10-09 Thread Jukka Andberg
Module Name:src Committed By: jandberg Date: Sat Oct 9 08:25:33 UTC 2021 Modified Files: src/share/man/man4/man4.amiga: amidisplaycc.4 Log Message: Update documentation to mention current status of X11 To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14

CVS commit: src/share/man/man4/man4.amiga

2021-10-09 Thread Jukka Andberg
Module Name:src Committed By: jandberg Date: Sat Oct 9 08:25:33 UTC 2021 Modified Files: src/share/man/man4/man4.amiga: amidisplaycc.4 Log Message: Update documentation to mention current status of X11 To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14

CVS commit: src/usr.sbin/sysinst/arch/mipsco

2021-10-09 Thread Martin Husemann
Module Name:src Committed By: martin Date: Sat Oct 9 08:21:03 UTC 2021 Modified Files: src/usr.sbin/sysinst/arch/mipsco: Makefile Log Message: Disable some installer options to shrink the ramdisk image To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2

CVS commit: src/usr.sbin/sysinst/arch/mipsco

2021-10-09 Thread Martin Husemann
Module Name:src Committed By: martin Date: Sat Oct 9 08:21:03 UTC 2021 Modified Files: src/usr.sbin/sysinst/arch/mipsco: Makefile Log Message: Disable some installer options to shrink the ramdisk image To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2

CVS commit: src

2021-10-09 Thread Ryo Shimizu
Module Name:src Committed By: ryo Date: Sat Oct 9 07:01:35 UTC 2021 Modified Files: src/distrib/sets/lists/debug: module.ad.aarch64 src/distrib/sets/lists/modules: ad.aarch64 src/sys/compat/linux/arch/aarch64: linux_machdep.c src/sys/modules:

CVS commit: src

2021-10-09 Thread Ryo Shimizu
Module Name:src Committed By: ryo Date: Sat Oct 9 07:01:35 UTC 2021 Modified Files: src/distrib/sets/lists/debug: module.ad.aarch64 src/distrib/sets/lists/modules: ad.aarch64 src/sys/compat/linux/arch/aarch64: linux_machdep.c src/sys/modules: