aboutsummaryrefslogtreecommitdiff
path: root/toys/other/lspci.c
AgeCommit message (Collapse)Author
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