util: make size macros unsigned
authorLennart Poettering <lennart@poettering.net>
Thu, 15 Oct 2020 15:33:04 +0000 (17:33 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 20 Oct 2020 06:51:48 +0000 (15:51 +0900)
commit67bd5620f6cf481c0a59cedbcf63ddcab355cc55
treee7aafd7a176377f9c4a1100a7e304ac32f05399f
parent0ce8a9d6e54f7ee04946b12fa22b0fb9fc2098f9
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
src/basic/format-util.h
src/basic/time-util.h
src/cgtop/cgtop.c
src/shared/logs-show.c