summaryrefslogtreecommitdiff
path: root/sys/dev/pci/tga.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2021-08-15 13:45:43 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2021-08-15 13:45:43 +0000
commit90f34b7bdb2b3a178327f687283a9505dcae55ee (patch)
tree0d8e1387978394cb580f26dcea43de478829e0c5 /sys/dev/pci/tga.c
parentdc50d5f325502522f2e3925d6328a43d51a3f4b0 (diff)
Don't check & errx() after each and every invocation of
string_from_line(). Just errx() inside string_from_line() if getline() fails. Use strcspn() idiom to nuke '\n' returned by getline(). No functional change.
Diffstat (limited to 'sys/dev/pci/tga.c')
0 files changed, 0 insertions, 0 deletions