diff options
author | Karel Zak | 2015-08-05 12:39:00 +0200 |
---|---|---|
committer | Karel Zak | 2015-08-05 12:39:00 +0200 |
commit | 9d8260761c8689839636e571eec9337493e35450 (patch) | |
tree | a79ca055e760e5bca9b482ecb213beefc6a37d3c /lib/timeutils.c | |
parent | tailf: fix open() return value check [coverity scan] (diff) | |
download | kernel-qcow2-util-linux-9d8260761c8689839636e571eec9337493e35450.tar.gz kernel-qcow2-util-linux-9d8260761c8689839636e571eec9337493e35450.tar.xz kernel-qcow2-util-linux-9d8260761c8689839636e571eec9337493e35450.zip |
lib/timeutils: fix indention [smatch scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'lib/timeutils.c')
-rw-r--r-- | lib/timeutils.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/timeutils.c b/lib/timeutils.c index b811041e4..4f2f61d51 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; |