CVS commit: src/sys/dev/ic

2020-12-29 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Tue Dec 29 08:00:48 UTC 2020

Modified Files:
src/sys/dev/ic: ahcisata_core.c

Log Message:
Some more whitespace consistency / KNF


To generate a diff of this commit:
cvs rdiff -u -r1.93 -r1.94 src/sys/dev/ic/ahcisata_core.c

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



CVS commit: src/sys/dev/usb

2020-12-29 Thread Julian Coleman
Module Name:src
Committed By:   jdc
Date:   Tue Dec 29 08:04:59 UTC 2020

Modified Files:
src/sys/dev/usb: uaudio.c

Log Message:
During detach, re-use the functions that halt playback and record DMA.
Prevents a panic during shutdown when media is playing.


To generate a diff of this commit:
cvs rdiff -u -r1.165 -r1.166 src/sys/dev/usb/uaudio.c

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



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

2020-12-29 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Tue Dec 29 10:24:22 UTC 2020

Modified Files:
src/usr.bin/xlint/lint1: cgram.y decl.c externs1.h func.c main1.c
tree.c

Log Message:
lint: rename functions that had very short names

C99 guarantees that the first 31 characters of an identifier with
external linkage are significant.  This removes the need to use
abbreviations for common words.


To generate a diff of this commit:
cvs rdiff -u -r1.110 -r1.111 src/usr.bin/xlint/lint1/cgram.y
cvs rdiff -u -r1.74 -r1.75 src/usr.bin/xlint/lint1/decl.c
cvs rdiff -u -r1.36 -r1.37 src/usr.bin/xlint/lint1/externs1.h
cvs rdiff -u -r1.28 -r1.29 src/usr.bin/xlint/lint1/func.c
cvs rdiff -u -r1.29 -r1.30 src/usr.bin/xlint/lint1/main1.c
cvs rdiff -u -r1.93 -r1.94 src/usr.bin/xlint/lint1/tree.c

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



CVS commit: src/sys/dev/pci

2020-12-29 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Tue Dec 29 11:04:53 UTC 2020

Modified Files:
src/sys/dev/pci: pcidevs

Log Message:
Trailing whitespace


To generate a diff of this commit:
cvs rdiff -u -r1.1421 -r1.1422 src/sys/dev/pci/pcidevs

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



CVS commit: src/sys/dev/pci

2020-12-29 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Tue Dec 29 11:05:57 UTC 2020

Modified Files:
src/sys/dev/pci: pcidevs

Log Message:
Sort Cavium devices


To generate a diff of this commit:
cvs rdiff -u -r1.1422 -r1.1423 src/sys/dev/pci/pcidevs

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



CVS commit: src/sys/dev/pci

2020-12-29 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Tue Dec 29 11:07:48 UTC 2020

Modified Files:
src/sys/dev/pci: pcidevs.h pcidevs_data.h

Log Message:
regen


To generate a diff of this commit:
cvs rdiff -u -r1.1408 -r1.1409 src/sys/dev/pci/pcidevs.h
cvs rdiff -u -r1.1407 -r1.1408 src/sys/dev/pci/pcidevs_data.h

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



CVS commit: src/usr.bin/xlint

2020-12-29 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Tue Dec 29 11:35:11 UTC 2020

Modified Files:
src/usr.bin/xlint/common: mem.c tyname.c
src/usr.bin/xlint/lint1: cgram.y decl.c emit1.c err.c init.c main1.c
mem1.c tree.c
src/usr.bin/xlint/lint2: chk.c emit2.c hash.c mem2.c msg.c read.c
src/usr.bin/xlint/xlint: xlint.c

Log Message:
lint: remove redundant parentheses around return value


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/usr.bin/xlint/common/mem.c
cvs rdiff -u -r1.13 -r1.14 src/usr.bin/xlint/common/tyname.c
cvs rdiff -u -r1.111 -r1.112 src/usr.bin/xlint/lint1/cgram.y
cvs rdiff -u -r1.75 -r1.76 src/usr.bin/xlint/lint1/decl.c
cvs rdiff -u -r1.23 -r1.24 src/usr.bin/xlint/lint1/emit1.c
cvs rdiff -u -r1.56 -r1.57 src/usr.bin/xlint/lint1/err.c
cvs rdiff -u -r1.32 -r1.33 src/usr.bin/xlint/lint1/init.c
cvs rdiff -u -r1.30 -r1.31 src/usr.bin/xlint/lint1/main1.c
cvs rdiff -u -r1.19 -r1.20 src/usr.bin/xlint/lint1/mem1.c
cvs rdiff -u -r1.94 -r1.95 src/usr.bin/xlint/lint1/tree.c
cvs rdiff -u -r1.26 -r1.27 src/usr.bin/xlint/lint2/chk.c
cvs rdiff -u -r1.13 -r1.14 src/usr.bin/xlint/lint2/emit2.c
cvs rdiff -u -r1.11 -r1.12 src/usr.bin/xlint/lint2/hash.c
cvs rdiff -u -r1.10 -r1.11 src/usr.bin/xlint/lint2/mem2.c
cvs rdiff -u -r1.12 -r1.13 src/usr.bin/xlint/lint2/msg.c
cvs rdiff -u -r1.29 -r1.30 src/usr.bin/xlint/lint2/read.c
cvs rdiff -u -r1.50 -r1.51 src/usr.bin/xlint/xlint/xlint.c

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



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

2020-12-29 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Tue Dec 29 11:54:56 UTC 2020

Modified Files:
src/usr.bin/xlint/lint1: lint1.h tree.c

Log Message:
lint: spell check


To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 src/usr.bin/xlint/lint1/lint1.h
cvs rdiff -u -r1.95 -r1.96 src/usr.bin/xlint/lint1/tree.c

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



CVS commit: src/usr.bin/xlint

2020-12-29 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Tue Dec 29 12:18:42 UTC 2020

Modified Files:
src/usr.bin/xlint/common: tyname.c
src/usr.bin/xlint/lint1: cgram.y err.c func.c lint1.h scan.l tree.c
src/usr.bin/xlint/lint2: read.c

Log Message:
lint: fix indentation and alignment that used space-tab


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/usr.bin/xlint/common/tyname.c
cvs rdiff -u -r1.112 -r1.113 src/usr.bin/xlint/lint1/cgram.y
cvs rdiff -u -r1.57 -r1.58 src/usr.bin/xlint/lint1/err.c
cvs rdiff -u -r1.29 -r1.30 src/usr.bin/xlint/lint1/func.c
cvs rdiff -u -r1.33 -r1.34 src/usr.bin/xlint/lint1/lint1.h
cvs rdiff -u -r1.95 -r1.96 src/usr.bin/xlint/lint1/scan.l
cvs rdiff -u -r1.96 -r1.97 src/usr.bin/xlint/lint1/tree.c
cvs rdiff -u -r1.30 -r1.31 src/usr.bin/xlint/lint2/read.c

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



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

2020-12-29 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Tue Dec 29 12:29:03 UTC 2020

Modified Files:
src/usr.bin/xlint/lint1: scan.l

Log Message:
lint: remove redundant parentheses around return value


To generate a diff of this commit:
cvs rdiff -u -r1.96 -r1.97 src/usr.bin/xlint/lint1/scan.l

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



CVS commit: src/distrib/sets/lists/xdebug

2020-12-29 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Tue Dec 29 12:43:36 UTC 2020

Modified Files:
src/distrib/sets/lists/xdebug: mi

Log Message:
Mark resize debug info as obsolete


To generate a diff of this commit:
cvs rdiff -u -r1.39 -r1.40 src/distrib/sets/lists/xdebug/mi

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



CVS commit: src/usr.bin/xlint

2020-12-29 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Tue Dec 29 13:33:03 UTC 2020

Modified Files:
src/usr.bin/xlint/common: externs.h tyname.c
src/usr.bin/xlint/lint1: cgram.y decl.c externs1.h func.c init.c
print.c scan.l tree.c

Log Message:
lint: rename functions with very short names


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/usr.bin/xlint/common/externs.h
cvs rdiff -u -r1.15 -r1.16 src/usr.bin/xlint/common/tyname.c
cvs rdiff -u -r1.113 -r1.114 src/usr.bin/xlint/lint1/cgram.y
cvs rdiff -u -r1.76 -r1.77 src/usr.bin/xlint/lint1/decl.c
cvs rdiff -u -r1.37 -r1.38 src/usr.bin/xlint/lint1/externs1.h
cvs rdiff -u -r1.30 -r1.31 src/usr.bin/xlint/lint1/func.c
cvs rdiff -u -r1.33 -r1.34 src/usr.bin/xlint/lint1/init.c
cvs rdiff -u -r1.5 -r1.6 src/usr.bin/xlint/lint1/print.c
cvs rdiff -u -r1.97 -r1.98 src/usr.bin/xlint/lint1/scan.l \
src/usr.bin/xlint/lint1/tree.c

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



CVS commit: src/sys/dev/pci

2020-12-29 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Tue Dec 29 15:39:59 UTC 2020

Modified Files:
src/sys/dev/pci: pci_map.c pciconf.c

Log Message:
Add support for Enhanced Allocations as seen in the Cavium ThunderX based
GIGABYTE MT30-GS2-00

>From thorpej@. Thanks!


To generate a diff of this commit:
cvs rdiff -u -r1.41 -r1.42 src/sys/dev/pci/pci_map.c
cvs rdiff -u -r1.50 -r1.51 src/sys/dev/pci/pciconf.c

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



CVS commit: src/sys/dev/pci

2020-12-29 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Tue Dec 29 15:49:13 UTC 2020

Modified Files:
src/sys/dev/pci: pci_map.c

Log Message:
More of the patch that adds support for Enhanced Allocations as seen in
the Cavium ThunderX based GIGABYTE MT30-GS2-00

>From thorpej@. Thanks!

(botched the copying of this from a branch previously)


To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 src/sys/dev/pci/pci_map.c

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



CVS commit: src/sys/dev/pci

2020-12-29 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Tue Dec 29 15:49:45 UTC 2020

Modified Files:
src/sys/dev/pci: pci_map.c

Log Message:
KNF a comment


To generate a diff of this commit:
cvs rdiff -u -r1.43 -r1.44 src/sys/dev/pci/pci_map.c

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



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

2020-12-29 Thread Izumi Tsutsui
Module Name:src
Committed By:   tsutsui
Date:   Tue Dec 29 16:02:01 UTC 2020

Modified Files:
src/sys/arch/hp300/dev: dcm.c

Log Message:
Use C99 designated initializers for struct consdev.


To generate a diff of this commit:
cvs rdiff -u -r1.88 -r1.89 src/sys/arch/hp300/dev/dcm.c

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



CVS commit: src/etc

2020-12-29 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Tue Dec 29 16:46:44 UTC 2020

Modified Files:
src/etc: Makefile

Log Message:
If MKX11 and MKDEBUG, add the xdebug set to the obsolete file handling.


To generate a diff of this commit:
cvs rdiff -u -r1.448 -r1.449 src/etc/Makefile

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



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

2020-12-29 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Tue Dec 29 16:48:53 UTC 2020

Modified Files:
src/usr.bin/xlint/lint1: cgram.y externs1.h init.c

Log Message:
lint: rename functions for handling the initialization stack


To generate a diff of this commit:
cvs rdiff -u -r1.114 -r1.115 src/usr.bin/xlint/lint1/cgram.y
cvs rdiff -u -r1.38 -r1.39 src/usr.bin/xlint/lint1/externs1.h
cvs rdiff -u -r1.34 -r1.35 src/usr.bin/xlint/lint1/init.c

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



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

2020-12-29 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Tue Dec 29 16:53:36 UTC 2020

Modified Files:
src/usr.bin/xlint/lint1: init.c

Log Message:
lint: split initstack_pop into separate functions


To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.36 src/usr.bin/xlint/lint1/init.c

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



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

2020-12-29 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Tue Dec 29 16:59:12 UTC 2020

Modified Files:
src/usr.bin/xlint/lint1: init.c

Log Message:
lint: split initstack_next into separate functions


To generate a diff of this commit:
cvs rdiff -u -r1.36 -r1.37 src/usr.bin/xlint/lint1/init.c

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



CVS commit: src/sys/arch/alpha/alpha

2020-12-29 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Tue Dec 29 17:16:15 UTC 2020

Modified Files:
src/sys/arch/alpha/alpha: pmap.c

Log Message:
>From the Infinitesimal Optimizations Department: in pmap_kremove(), update
the globally visible stats outside of the loop.


To generate a diff of this commit:
cvs rdiff -u -r1.273 -r1.274 src/sys/arch/alpha/alpha/pmap.c

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



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

2020-12-29 Thread Izumi Tsutsui
Module Name:src
Committed By:   tsutsui
Date:   Tue Dec 29 17:17:14 UTC 2020

Modified Files:
src/sys/arch/luna68k/dev: lcd.c siotty.c xp.c

Log Message:
Make local functions static.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/sys/arch/luna68k/dev/lcd.c
cvs rdiff -u -r1.46 -r1.47 src/sys/arch/luna68k/dev/siotty.c
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/luna68k/dev/xp.c

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



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

2020-12-29 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Tue Dec 29 17:29:31 UTC 2020

Modified Files:
src/usr.bin/xlint/lint1: cgram.y decl.c externs1.h

Log Message:
lint: split complete_tag into separate functions


To generate a diff of this commit:
cvs rdiff -u -r1.115 -r1.116 src/usr.bin/xlint/lint1/cgram.y
cvs rdiff -u -r1.77 -r1.78 src/usr.bin/xlint/lint1/decl.c
cvs rdiff -u -r1.39 -r1.40 src/usr.bin/xlint/lint1/externs1.h

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



CVS commit: src/distrib/sets/lists/xdebug

2020-12-29 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Tue Dec 29 17:53:08 UTC 2020

Modified Files:
src/distrib/sets/lists/xdebug: mi

Log Message:
Add /var/db/obsolete/xdebug


To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.41 src/distrib/sets/lists/xdebug/mi

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



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

2020-12-29 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Tue Dec 29 19:02:16 UTC 2020

Modified Files:
src/usr.bin/xlint/lint1: init.c

Log Message:
lint: improve debug output for initializing structs

Still trying to find out where the wrong warning in d_struct_init_nested
comes from.


To generate a diff of this commit:
cvs rdiff -u -r1.37 -r1.38 src/usr.bin/xlint/lint1/init.c

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



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

2020-12-29 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Tue Dec 29 19:09:53 UTC 2020

Modified Files:
src/usr.bin/xlint/lint1: init.c

Log Message:
lint: remove redundant function prototypes


To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.39 src/usr.bin/xlint/lint1/init.c

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



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

2020-12-29 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Tue Dec 29 19:57:44 UTC 2020

Modified Files:
src/usr.bin/xlint/lint1: init.c

Log Message:
lint: make debug output for initializations more uniform


To generate a diff of this commit:
cvs rdiff -u -r1.39 -r1.40 src/usr.bin/xlint/lint1/init.c

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



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

2020-12-29 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Tue Dec 29 20:07:04 UTC 2020

Modified Files:
src/usr.bin/xlint/lint1: init.c

Log Message:
lint: clean up debug logging for initializations


To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.41 src/usr.bin/xlint/lint1/init.c

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



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

2020-12-29 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Tue Dec 29 20:56:28 UTC 2020

Modified Files:
src/usr.bin/xlint/lint1: init.c

Log Message:
lint: untangle conditions in initstack_next_nobrace


To generate a diff of this commit:
cvs rdiff -u -r1.41 -r1.42 src/usr.bin/xlint/lint1/init.c

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



CVS commit: src/usr.bin/xlint

2020-12-29 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Tue Dec 29 21:32:46 UTC 2020

Modified Files:
src/usr.bin/xlint/lint1: decl.c emit1.c lint1.h tree.c
src/usr.bin/xlint/lint2: lint2.h

Log Message:
lint: fix typo in comments


To generate a diff of this commit:
cvs rdiff -u -r1.78 -r1.79 src/usr.bin/xlint/lint1/decl.c
cvs rdiff -u -r1.24 -r1.25 src/usr.bin/xlint/lint1/emit1.c
cvs rdiff -u -r1.34 -r1.35 src/usr.bin/xlint/lint1/lint1.h
cvs rdiff -u -r1.98 -r1.99 src/usr.bin/xlint/lint1/tree.c
cvs rdiff -u -r1.8 -r1.9 src/usr.bin/xlint/lint2/lint2.h

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



CVS commit: src/sys/kern

2020-12-29 Thread Chuck Silvers
Module Name:src
Committed By:   chs
Date:   Tue Dec 29 22:13:40 UTC 2020

Modified Files:
src/sys/kern: vfs_lookup.c

Log Message:
Honor LOCKPARENT for ".." of the root directory.

Reported-by: syzbot+f40b9f241b818fd12...@syzkaller.appspotmail.com


To generate a diff of this commit:
cvs rdiff -u -r1.224 -r1.225 src/sys/kern/vfs_lookup.c

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



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

2020-12-29 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Tue Dec 29 23:04:31 UTC 2020

Modified Files:
src/usr.bin/xlint/lint1: tree.c

Log Message:
lint: rename functions that had very short names


To generate a diff of this commit:
cvs rdiff -u -r1.99 -r1.100 src/usr.bin/xlint/lint1/tree.c

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



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

2020-12-29 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Tue Dec 29 23:12:48 UTC 2020

Modified Files:
src/usr.bin/xlint/lint1: init.c lint1.h

Log Message:
lint: rename istk_t.i_cnt to i_remaining


To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 src/usr.bin/xlint/lint1/init.c
cvs rdiff -u -r1.35 -r1.36 src/usr.bin/xlint/lint1/lint1.h

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



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

2020-12-29 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Wed Dec 30 01:02:38 UTC 2020

Modified Files:
src/usr.bin/xlint/lint1: cgram.y

Log Message:
lint: add debug logging to the parser

Even with -DDEBUG and -DYYDEBUG, the debug output is not detailed enough
to clearly see what happens.

Add some custom debug logging to the parser, mainly for demonstration
purposes, and also to find out how to fix the test d_struct_init_nested.


To generate a diff of this commit:
cvs rdiff -u -r1.116 -r1.117 src/usr.bin/xlint/lint1/cgram.y

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



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

2020-12-29 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Wed Dec 30 01:33:30 UTC 2020

Modified Files:
src/usr.bin/xlint/lint1: err.c externs1.h init.c lint1.h

Log Message:
lint: reduce verbosity of assertions

Having 2 lines of source code per assertion is too much, especially
since most of this code is redundant anyway.  Extract the common code
and the additional negation into a simple function instead.


To generate a diff of this commit:
cvs rdiff -u -r1.58 -r1.59 src/usr.bin/xlint/lint1/err.c
cvs rdiff -u -r1.40 -r1.41 src/usr.bin/xlint/lint1/externs1.h
cvs rdiff -u -r1.43 -r1.44 src/usr.bin/xlint/lint1/init.c
cvs rdiff -u -r1.36 -r1.37 src/usr.bin/xlint/lint1/lint1.h

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



CVS commit: src/usr.bin/nl

2020-12-29 Thread Brian Ginsbach
Module Name:src
Committed By:   ginsbach
Date:   Wed Dec 30 01:42:31 UTC 2020

Modified Files:
src/usr.bin/nl: nl.c

Log Message:
nl: fix -d delim parsing for POSIX

POSIX specifies it is possible to specify a one delimiter character.
Fix the logic so that both one and two character delimiters are accepted.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/usr.bin/nl/nl.c

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



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

2020-12-29 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Wed Dec 30 01:44:32 UTC 2020

Modified Files:
src/usr.bin/xlint/lint1: cgram.y

Log Message:
lint: reduce nesting of function calls


To generate a diff of this commit:
cvs rdiff -u -r1.117 -r1.118 src/usr.bin/xlint/lint1/cgram.y

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