From: Karel Zak Date: Wed, 5 Aug 2015 10:39:00 +0000 (+0200) Subject: lib/timeutils: fix indention [smatch scan] X-Git-Tag: v2.27-rc2~38 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9d8260761c8689839636e571eec9337493e35450;p=thirdparty%2Futil-linux.git lib/timeutils: fix indention [smatch scan] Signed-off-by: Karel Zak --- diff --git a/lib/timeutils.c b/lib/timeutils.c index b811041e45..4f2f61d51b 100644 --- a/lib/timeutils.c +++ b/lib/timeutils.c @@ -36,10 +36,10 @@ static int parse_sec(const char *t, usec_t *usec) { - static const struct { + static const struct { const char *suffix; usec_t usec; - } table[] = { + } table[] = { { "seconds", USEC_PER_SEC }, { "second", USEC_PER_SEC }, { "sec", USEC_PER_SEC }, @@ -68,7 +68,7 @@ static int parse_sec(const char *t, usec_t *usec) { "usec", 1ULL }, { "us", 1ULL }, { "", USEC_PER_SEC }, /* default is sec */ - }; + }; const char *p; usec_t r = 0; @@ -148,10 +148,10 @@ static int parse_sec(const char *t, usec_t *usec) int parse_timestamp(const char *t, usec_t *usec) { - static const struct { + static const struct { const char *name; const int nr; - } day_nr[] = { + } day_nr[] = { { "Sunday", 0 }, { "Sun", 0 }, { "Monday", 1 }, @@ -166,7 +166,7 @@ int parse_timestamp(const char *t, usec_t *usec) { "Fri", 5 }, { "Saturday", 6 }, { "Sat", 6 }, - }; + }; const char *k; struct tm tm, copy;