diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2014-09-29 07:31:14 -0500 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2014-09-30 15:57:53 -0400 |
commit | 19a52be96c85c15db274edc7a1dc7dfc236bd2ae (patch) | |
tree | 7bf16d6ae524858c14ac8704e16f38b9ad6ddc9f /Makefile.am | |
parent | d7447bb0baa871b5866785ed3ecdfdc35976d458 (diff) |
Do not format USEC_INFINITY as NULL
systemctl would print 'CPUQuotaPerSecUSec=(null)' for no limit. This
does not look right.
Since USEC_INFINITY is one of the valid values, format_timespan()
could return NULL, and we should wrap every use of it in strna() or
similar. But most callers didn't do that, and it seems more robust to
return a string ("infinity") that makes sense most of the time, even
if in some places the result will not be grammatically correct.
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'Makefile.am')
0 files changed, 0 insertions, 0 deletions