2012-04-16 10:22:30 -04:00
|
|
|
$OpenBSD: patch-addressbook_backends_file_e-book-backend-file_c,v 1.11 2012/04/16 14:22:30 jasper Exp $
|
2011-12-29 04:23:19 -05:00
|
|
|
|
|
|
|
On OpenBSD, time_t is an int.
|
|
|
|
|
2012-04-16 10:22:30 -04:00
|
|
|
--- addressbook/backends/file/e-book-backend-file.c.orig Mon Apr 9 07:00:58 2012
|
|
|
|
+++ addressbook/backends/file/e-book-backend-file.c Mon Apr 16 15:42:48 2012
|
|
|
|
@@ -758,7 +758,7 @@ e_book_backend_file_create_unique_id (void)
|
2011-09-21 09:26:03 -04:00
|
|
|
* it's doubtful 2^32 id's will be created in a second, so we
|
|
|
|
* should be okay. */
|
2010-09-30 03:32:08 -04:00
|
|
|
static guint c = 0;
|
|
|
|
- return g_strdup_printf (PAS_ID_PREFIX "%08lX%08X", time(NULL), c++);
|
2011-12-29 04:23:19 -05:00
|
|
|
+ return g_strdup_printf (PAS_ID_PREFIX "%08X%08X", time(NULL), c++);
|
2010-09-30 03:32:08 -04:00
|
|
|
}
|
|
|
|
|
2012-03-29 02:45:21 -04:00
|
|
|
static gchar *
|