aboutsummaryrefslogtreecommitdiff
path: root/src/common/util.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2012-09-11 10:41:59 -0400
committerNick Mathewson <nickm@torproject.org>2012-09-11 13:13:07 -0400
commit973c18bf0e84d14d8006a9ae97fde7f7fb97e404 (patch)
tree4f8172e13883e45ecff9295737cc82e20dac3602 /src/common/util.h
parent1c30e6abc93fa086a14d01d838066581a3657285 (diff)
downloadtor-973c18bf0e84d14d8006a9ae97fde7f7fb97e404.tar
tor-973c18bf0e84d14d8006a9ae97fde7f7fb97e404.tar.gz
Fix assertion failure in tor_timegm.
Fixes bug 6811.
Diffstat (limited to 'src/common/util.h')
-rw-r--r--src/common/util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/util.h b/src/common/util.h
index d4771562e..75de3422d 100644
--- a/src/common/util.h
+++ b/src/common/util.h
@@ -232,7 +232,7 @@ int64_t tv_to_msec(const struct timeval *tv);
int64_t tv_to_usec(const struct timeval *tv);
long tv_udiff(const struct timeval *start, const struct timeval *end);
long tv_mdiff(const struct timeval *start, const struct timeval *end);
-time_t tor_timegm(struct tm *tm);
+int tor_timegm(const struct tm *tm, time_t *time_out);
#define RFC1123_TIME_LEN 29
void format_rfc1123_time(char *buf, time_t t);
int parse_rfc1123_time(const char *buf, time_t *t);