aboutsummaryrefslogtreecommitdiff
path: root/toys/other/lspci.c
AgeCommit message (Collapse)Author
2020-03-13Fix various typos.Elliott Hughes
In case I'm not yet in the running for the most pedantic change of this release, I think the "days of the week are written with initial capitals in English" subset of this patch is a strong contender. (Found via `toybox help -a | ispell -l | sort | uniq`.)
2018-11-19A few more GLOBALS() single character argument style conversions.Rob Landley
2016-06-15Add readlink0() and readlinkat0() which null terminate the data.Rob Landley
2015-08-02Mark command-local functions static.Rob Landley
2014-11-24Tweak the "ignoring return value" fortify workaround for readlinkat.Rob Landley
We zero the buffer and if the link read fails that's left alone, so it's ok for the symlink not to be there. Unfortunately, typecasting the return value to (void) doesn't shut up gcc, and having an if(); with the semicolon on the same line doesn't shut up llvm. (The semicolon on a new line would, but C does not have significant whitespace and I'm not going to humor llvm if it plans to start.) So far, empty curly brackets consistently get the warning to shut up.
2014-11-22As long as Android's going to require fortify, fixup the warnings it generates.Rob Landley
2014-08-11Promote lspci.Rob Landley