]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/basic/parse-util.c
tree-wide: use IN_SET macro (#6977)
[thirdparty/systemd.git] / src / basic / parse-util.c
index 89bb667c5fe6b1776cf068365ace06b5c5b6df5e..4ae07b0a8ed9818815dc092c03672befa7bc8457 100644 (file)
@@ -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) {