mirror of
https://github.com/openbsd/ports.git
synced 2026-06-17 23:13:55 +02:00
20 lines
520 B
Plaintext
20 lines
520 B
Plaintext
Index: src/server/timestamp.c
|
|
--- src/server/timestamp.c.orig
|
|
+++ src/server/timestamp.c
|
|
@@ -65,7 +65,7 @@ int timestamp_get_new(uint64_t index,
|
|
return 0;
|
|
}
|
|
|
|
-long timestamp_to_long(const char *buf)
|
|
+time_t timestamp_to_long(const char *buf)
|
|
{
|
|
struct tm tm;
|
|
const char *b=NULL;
|
|
@@ -74,5 +74,5 @@ long timestamp_to_long(const char *buf)
|
|
if(!strptime(b+1, DEFAULT_TIMESTAMP_FORMAT, &tm)
|
|
&& !strptime(b+1, DEFAULT_TIMESTAMP_FORMAT_OLD, &tm))
|
|
return 0;
|
|
- return (long)mktime(&tm);
|
|
+ return mktime(&tm);
|
|
}
|