1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-10 05:18:17 +03:00

basic/time-util: inline one more variable declaration

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2021-07-19 19:58:13 +02:00
parent a35f3128e6
commit c543f4d7dd

View File

@ -553,14 +553,12 @@ char *format_timespan(char *buf, size_t l, usec_t t, usec_t accuracy) {
/* Let's see if we should shows this in dot notation */
if (t < USEC_PER_MINUTE && b > 0) {
usec_t cc;
signed char j;
signed char j = 0;
j = 0;
for (cc = table[i].usec; cc > 1; cc /= 10)
for (usec_t cc = table[i].usec; cc > 1; cc /= 10)
j++;
for (cc = accuracy; cc > 1; cc /= 10) {
for (usec_t cc = accuracy; cc > 1; cc /= 10) {
b /= 10;
j--;
}