diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2021-08-15 13:45:43 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2021-08-15 13:45:43 +0000 |
commit | 90f34b7bdb2b3a178327f687283a9505dcae55ee (patch) | |
tree | 0d8e1387978394cb580f26dcea43de478829e0c5 /sys/dev/pci/tga.c | |
parent | dc50d5f325502522f2e3925d6328a43d51a3f4b0 (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