diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-03-28 09:24:15 -0400 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-03-29 10:12:41 -0400 |
commit | 8333c77edf8fd1654cd96f3f6ee0f078dd64b58b (patch) | |
tree | 135da27f10763e512868c34155891864877f6622 /src/locale | |
parent | 0db809489fd88a320ae1023ffe36a9965e9a91b2 (diff) |
Always use errno > 0 to help gcc
gcc thinks that errno might be negative, and functions could return
something positive on error (-errno). Should not matter in practice,
but makes an -O4 build much quieter.
Diffstat (limited to 'src/locale')
-rw-r--r-- | src/locale/localectl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/locale/localectl.c b/src/locale/localectl.c index 9f996dbc98..fc312894c6 100644 --- a/src/locale/localectl.c +++ b/src/locale/localectl.c @@ -421,7 +421,7 @@ static int add_locales_from_libdir (Set *locales) { errno = 0; } - if (errno != 0) { + if (errno > 0) { log_error("Failed to read locale directory: %m"); return -errno; } |