diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-05-27 09:17:43 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-05-27 09:21:28 +1200 |
commit | cb7abfb92d2c1fba40c686f28ab55f8a8fa931eb (patch) | |
tree | 5242cc6a3b130872282b7cb2c75dd848bd81805f /whoami.c | |
parent | Simplify types for sort func (diff) | |
download | tunics-cb7abfb92d2c1fba40c686f28ab55f8a8fa931eb.tar.gz tunics-cb7abfb92d2c1fba40c686f28ab55f8a8fa931eb.zip |
Use implicit NULL tests
Diffstat (limited to 'whoami.c')
-rw-r--r-- | whoami.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3,7 +3,7 @@ int main(void) { struct passwd *p; - if ((p = getpwuid(getuid())) == NULL) { + if (!(p = getpwuid(getuid()))) { exit(EXIT_FAILURE); } |