diff options
author | Daniel Mack <daniel@zonque.org> | 2015-02-24 13:26:09 +0100 |
---|---|---|
committer | Daniel Mack <daniel@zonque.org> | 2015-02-24 13:26:47 +0100 |
commit | 8e8933ca0f06bae19cb6db601e83b33f8ac80f2a (patch) | |
tree | 51f05bb4cb403f4ef47eadc11c32af9425e33086 /src/shared/time-util.c | |
parent | 6ad4a4fc43e12c8c36f85abbb36e8791ec507519 (diff) |
shared/time-util: fix gcc5 warning
CC src/shared/libsystemd_shared_la-time-util.lo
src/shared/time-util.c: In function 'parse_nsec':
src/shared/time-util.c:789:25: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses]
if (!*s != 0)
^
Diffstat (limited to 'src/shared/time-util.c')
-rw-r--r-- | src/shared/time-util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/time-util.c b/src/shared/time-util.c index 947ac1fcfb..1c36c577c4 100644 --- a/src/shared/time-util.c +++ b/src/shared/time-util.c @@ -786,7 +786,7 @@ int parse_nsec(const char *t, nsec_t *nsec) { s = startswith(p, "infinity"); if (s) { s += strspn(s, WHITESPACE); - if (!*s != 0) + if (*s != 0) return -EINVAL; *nsec = NSEC_INFINITY; |