summaryrefslogtreecommitdiffstats
path: root/time.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2020-10-16 07:49:35 -0700
committerKaz Kylheku <kaz@kylheku.com>2020-10-16 07:49:35 -0700
commitf3ee4f61732af483ee5746e6a7102697cd2161c0 (patch)
treeb5c06f016daca8414e1c673495c512833f0a1059 /time.c
parentb25204fce729d4973f2c9c707c06abed7759a959 (diff)
downloadtxr-f3ee4f61732af483ee5746e6a7102697cd2161c0.tar.gz
txr-f3ee4f61732af483ee5746e6a7102697cd2161c0.tar.bz2
txr-f3ee4f61732af483ee5746e6a7102697cd2161c0.zip
time: indentation fix.
* time.c (timegm_hack): Use two space indentation, not four.
Diffstat (limited to 'time.c')
-rw-r--r--time.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/time.c b/time.c
index fe1d431b..85b98d0a 100644
--- a/time.c
+++ b/time.c
@@ -341,24 +341,24 @@ val time_parse(val format, val string)
static time_t timegm_hack(struct tm *tm)
{
- time_t ret;
- char *tz;
+ time_t ret;
+ char *tz;
- tz = getenv("TZ");
- setenv("TZ", "UTC", 1);
+ tz = getenv("TZ");
+ setenv("TZ", "UTC", 1);
#if HAVE_TZSET
- tzset();
+ tzset();
#endif
- ret = mktime(tm);
- if (tz)
- setenv("TZ", tz, 1);
- else
- unsetenv("TZ");
+ ret = mktime(tm);
+ if (tz)
+ setenv("TZ", tz, 1);
+ else
+ unsetenv("TZ");
#if HAVE_TZSET
- tzset();
+ tzset();
#endif
- return ret;
+ return ret;
}
#endif