[ekiga] OpenBSD compilation patch with input from Antoine Jacoutot: thanks!
- From: Julien Puydt <jpuydt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga] OpenBSD compilation patch with input from Antoine Jacoutot: thanks!
- Date: Wed, 19 Feb 2014 17:04:58 +0000 (UTC)
commit 9c89a502ec82afa14a78a5949f7a4a15aa37cfa7
Author: Julien Puydt <jpuydt free fr>
Date: Wed Feb 19 18:03:41 2014 +0100
OpenBSD compilation patch with input from Antoine Jacoutot: thanks!
.../components/call-history/history-contact.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/lib/engine/components/call-history/history-contact.cpp
b/lib/engine/components/call-history/history-contact.cpp
index dea5433..5a37cc4 100644
--- a/lib/engine/components/call-history/history-contact.cpp
+++ b/lib/engine/components/call-history/history-contact.cpp
@@ -91,7 +91,7 @@ History::Contact::Contact (boost::shared_ptr<Ekiga::ContactCore> _contact_core,
xml_str = xmlNodeGetContent (child);
if (xml_str != NULL)
- call_start = (time_t) atoi ((const char *) xml_str);
+ call_start = (time_t) strtoll((const char *) xml_str, NULL, 0);
xmlFree (xml_str);
}
@@ -127,7 +127,7 @@ History::Contact::Contact (boost::shared_ptr<Ekiga::ContactCore> _contact_core,
BAD_CAST "name",
BAD_CAST robust_xmlEscape (node->doc, name).c_str ());
- tmp = g_strdup_printf ("%lu", call_start);
+ tmp = g_strdup_printf ("%" G_GINT64_FORMAT, (gint64)call_start);
xmlNewChild (node, NULL,
BAD_CAST "call_start", BAD_CAST tmp);
g_free (tmp);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]