diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2017-10-04 23:01:32 +0900 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-10-04 16:01:32 +0200 |
commit | 4c701096002fff540d9ddb3b21398c551ac3af78 (patch) | |
tree | 537e654dc92baa5eed5b6ff69867114384ecfa47 /src/basic/parse-util.c | |
parent | 6d0aa4db7b33c9ce71b820c76428a1cfd24fb56f (diff) | |
download | systemd-4c701096002fff540d9ddb3b21398c551ac3af78.tar.gz |
tree-wide: use IN_SET macro (#6977)
Diffstat (limited to 'src/basic/parse-util.c')
-rw-r--r-- | src/basic/parse-util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/parse-util.c b/src/basic/parse-util.c index 89bb667c5f..4ae07b0a8e 100644 --- a/src/basic/parse-util.c +++ b/src/basic/parse-util.c @@ -152,7 +152,7 @@ int parse_size(const char *t, uint64_t base, uint64_t *size) { unsigned n_entries, start_pos = 0; assert(t); - assert(base == 1000 || base == 1024); + assert(IN_SET(base, 1000, 1024)); assert(size); if (base == 1000) { |