25 lines
1.1 KiB
Plaintext
25 lines
1.1 KiB
Plaintext
$OpenBSD: patch-src_xml_c,v 1.2 2014/05/06 09:20:56 jasper Exp $
|
|
|
|
Fix for 64bit time_t.
|
|
|
|
--- src/xml.c.orig Thu Mar 27 13:27:21 2014
|
|
+++ src/xml.c Tue May 6 13:03:54 2014
|
|
@@ -142,7 +142,7 @@ static void status_service(Service_T S, StringBuffer_T
|
|
else
|
|
StringBuffer_append(B, "<service type=\"%d\"><name>%s</name>", S->type, S->name ? S->name : "");
|
|
StringBuffer_append(B,
|
|
- "<collected_sec>%ld</collected_sec>"
|
|
+ "<collected_sec>%lld</collected_sec>"
|
|
"<collected_usec>%ld</collected_usec>"
|
|
"<status>%d</status>"
|
|
"<status_hint>%d</status_hint>"
|
|
@@ -353,7 +353,7 @@ static void status_event(Event_T E, StringBuffer_T B)
|
|
struct timeval *tv = Event_get_collected(E);
|
|
StringBuffer_append(B,
|
|
"<event>"
|
|
- "<collected_sec>%ld</collected_sec>"
|
|
+ "<collected_sec>%lld</collected_sec>"
|
|
"<collected_usec>%ld</collected_usec>"
|
|
"<service>%s</service>"
|
|
"<type>%d</type>"
|