core: correct TIMESTAMP type; fixes potential crash when time() is 32bit

The Crash appeared on some platforms in glib while processing variable
arguments.
This commit is contained in:
Jiří Klimeš 2010-11-23 19:06:58 +01:00
parent 5c9e82d17b
commit 4b022ed32b

View file

@ -163,7 +163,7 @@ constructor (GType type,
NM_SETTING_CONNECTION_AUTOCONNECT, TRUE,
NM_SETTING_CONNECTION_UUID, uuid,
NM_SETTING_CONNECTION_READ_ONLY, priv->read_only,
NM_SETTING_CONNECTION_TIMESTAMP, time (NULL),
NM_SETTING_CONNECTION_TIMESTAMP, (guint64) time (NULL),
NULL);
g_free (id);