diff options
author | Lennart Poettering <lennart@poettering.net> | 2020-10-15 17:33:04 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-10-20 08:51:48 +0200 |
commit | 67bd5620f6cf481c0a59cedbcf63ddcab355cc55 (patch) | |
tree | e7aafd7a176377f9c4a1100a7e304ac32f05399f /src/cgtop | |
parent | Merge pull request #16939 from Rahix/robust-first-boot-machine-id (diff) | |
download | systemd-67bd5620f6cf481c0a59cedbcf63ddcab355cc55.tar.xz systemd-67bd5620f6cf481c0a59cedbcf63ddcab355cc55.zip |
util: make size macros unsigned
By making them unsigned comparing them with other sizes is less likely
to trigger compiler warnings regarding signed/unsigned comparisons.
After all sizes (i.e. size_t) are generally assumed to be unsigned, so
these should be too.
Prompted-by: https://github.com/systemd/systemd/pull/17345#issuecomment-709402332
Diffstat (limited to 'src/cgtop')
-rw-r--r-- | src/cgtop/cgtop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cgtop/cgtop.c b/src/cgtop/cgtop.c index 042d83c495..0b6c2f88ed 100644 --- a/src/cgtop/cgtop.c +++ b/src/cgtop/cgtop.c @@ -586,7 +586,7 @@ static void display(Hashmap *a) { Group **array; signed path_columns; unsigned rows, n = 0, j, maxtcpu = 0, maxtpath = 3; /* 3 for ellipsize() to work properly */ - char buffer[MAX3(21, FORMAT_BYTES_MAX, FORMAT_TIMESPAN_MAX)]; + char buffer[MAX3(21U, FORMAT_BYTES_MAX, FORMAT_TIMESPAN_MAX)]; assert(a); |