1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
Description: Build as time_t instead of long
Author: Dave Hibberd <hibby@debian.org>
Forwarded: no
Last-Update: 2025-01-08
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/listen/opentracdump.c
+++ b/listen/opentracdump.c
@@ -148,7 +148,9 @@
static int decode_timestamp(unsigned char *element, int element_len)
{
/* 0x11 Timestamp - Unix format time (unsigned) */
- long rawtime = 0;
+ // This is not a great solution, as opentrac standard only supports 32b
+ // time
+ time_t rawtime = 0;
rawtime = get32(element);
lprintf(T_OPENTRAC, "Time: %s", ctime(&rawtime));
|