diff options
author | Lukas Fleischer <cgit@cryptocrack.de> | 2013-03-03 16:04:29 +0100 |
---|---|---|
committer | Lukas Fleischer <cgit@cryptocrack.de> | 2013-03-04 01:12:48 +0100 |
commit | 53bc747d311d18642fa3ad0cc0de34f3899ed1f4 (patch) | |
tree | 97e6fa2e4e7300f55a180917059b71e566c260fe /ui-stats.c | |
parent | Update git to v1.7.12.4 (diff) | |
download | cgit-pink-53bc747d311d18642fa3ad0cc0de34f3899ed1f4.tar.gz cgit-pink-53bc747d311d18642fa3ad0cc0de34f3899ed1f4.zip |
Fix several whitespace errors
* Remove whitespace at the end of lines. * Replace space indentation by tabs. * Add whitespace before/after several operators ("+", "-", "*", ...) * Add whitespace to assignments ("foo = bar;"). * Fix whitespace in parameter lists ("foobar(foo, bar, 42)"). Signed-off-by: Lukas Fleischer <cgit@cryptocrack.de>
Diffstat (limited to '')
-rw-r--r-- | ui-stats.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ui-stats.c b/ui-stats.c index 51dd6a2..f74dc33 100644 --- a/ui-stats.c +++ b/ui-stats.c @@ -23,21 +23,21 @@ static void trunc_week(struct tm *tm) { time_t t = timegm(tm); t -= ((tm->tm_wday + 6) % 7) * DAY_SECS; - gmtime_r(&t, tm); + gmtime_r(&t, tm); } static void dec_week(struct tm *tm) { time_t t = timegm(tm); t -= WEEK_SECS; - gmtime_r(&t, tm); + gmtime_r(&t, tm); } static void inc_week(struct tm *tm) { time_t t = timegm(tm); t += WEEK_SECS; - gmtime_r(&t, tm); + gmtime_r(&t, tm); } static char *pretty_week(struct tm *tm) @@ -153,7 +153,7 @@ int cgit_find_stats_period(const char *expr, struct cgit_period **period) if (periods[i].code == code || !strcmp(periods[i].name, expr)) { if (period) *period = &periods[i]; - return i+1; + return i + 1; } return 0; } |