summaryrefslogtreecommitdiff
path: root/src/libstddjb/utc_from_localtm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstddjb/utc_from_localtm.c')
-rw-r--r--src/libstddjb/utc_from_localtm.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/libstddjb/utc_from_localtm.c b/src/libstddjb/utc_from_localtm.c
index cad1a06..a5886f3 100644
--- a/src/libstddjb/utc_from_localtm.c
+++ b/src/libstddjb/utc_from_localtm.c
@@ -7,9 +7,7 @@
int utc_from_localtm (uint64 *uu, struct tm const *l)
{
- uint64 u ;
- if (!ltm64_from_localtm(&u, l)) return 0 ;
- if (!utc_from_ltm64(&u)) return 0 ;
- *uu = u ;
+ if (!ltm64_from_localtm(uu, l)) return 0 ;
+ utc_from_ltm64(uu) ;
return 1 ;
}