util: make size macros unsigned
authorLennart Poettering <lennart@poettering.net>
Thu, 15 Oct 2020 15:33:04 +0000 (17:33 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 8 Dec 2020 17:08:30 +0000 (18:08 +0100)
commit24cf649d0b44f6f5bfc3aa2754e04c3d82fb15f9
tree5ef9614ac976519fb13ff5721cf3f5b56a32a0c2
parent03f5f25f8ee62c325f5037f3f947663959e8be81
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
(cherry picked from commit 67bd5620f6cf481c0a59cedbcf63ddcab355cc55)
src/basic/format-util.h
src/basic/time-util.h
src/cgtop/cgtop.c
src/shared/logs-show.c