chiark / gitweb /
util: replace decimal_str_max() by a typesafe macro DECIMAL_STR_WIDTH()
authorLennart Poettering <lennart@poettering.net>
Tue, 16 Apr 2013 03:04:53 +0000 (05:04 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 16 Apr 2013 03:04:53 +0000 (05:04 +0200)
commit82da66fb750c91f06e713ff23a5e5c57ff05c2a8
treed36730ca6eaca931106b96a90bced84651ce0bf5
parentd8d3d8a781031d6b1ee4e5f57ec21f16c20a4cf2
util: replace decimal_str_max() by a typesafe macro DECIMAL_STR_WIDTH()

DECIMAL_STR_WIDTH() now works on any numeric type, and is easier to
distingish from DECIMAL_STR_MAX().

This also replaces another manual implementaiton of ulog10 by this macro.
src/shared/cgroup-show.c
src/shared/util.h
src/systemctl/systemctl.c