diff options
author | Lubomir Rintel <lkundrak@v3.sk> | 2014-11-19 16:01:43 +0100 |
---|---|---|
committer | Lubomir Rintel <lkundrak@v3.sk> | 2014-11-19 16:04:41 +0100 |
commit | c30379e0fd82146da29edb4b4753d7afb4d7e4bf (patch) | |
tree | 39346af30f8443f58adec0406b2a21ebe3a61144 | |
parent | 8473bb310dd92bb5de8df5b637806a1dcb5f3053 (diff) | |
download | NetworkManager-c30379e0fd82146da29edb4b4753d7afb4d7e4bf.tar.gz |
libnm-core: Add missing type cast
Fixes testing on 32-bit arches:
/core/general/test_setting_compare_timestamp:
(./test-general:29331): GLib-GObject-WARNING **: g_object_set_valist: object class `NMSettingConnection' has no property named `$?\xff\xff\x89t$0\x89|$4\xe8\u001c\x98\xff\xff\x85\xc0tM\x83\xf8\xfft3\x8dT$(\xc7D$\u0008'
/bin/sh: line 5: 29331 Trace/breakpoint trap ${dir}$tst
FAIL: test-general
Fixes: 093a3c88d03bf91ed65e80e45261451a50e974df
-rw-r--r-- | libnm-core/tests/test-general.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libnm-core/tests/test-general.c b/libnm-core/tests/test-general.c index 47055d9bc6..1a0ee99d52 100644 --- a/libnm-core/tests/test-general.c +++ b/libnm-core/tests/test-general.c @@ -2259,11 +2259,11 @@ test_setting_compare_timestamp (void) NM_SETTING_CONNECTION_ID, "ignore timestamp connection", NM_SETTING_CONNECTION_UUID, "b047a198-0e0a-4f0e-a653-eea09bb35e40", NM_SETTING_CONNECTION_AUTOCONNECT, FALSE, - NM_SETTING_CONNECTION_TIMESTAMP, 1234567890, + NM_SETTING_CONNECTION_TIMESTAMP, (guint64) 1234567890, NULL); new = nm_setting_duplicate (old); - g_object_set (new, NM_SETTING_CONNECTION_TIMESTAMP, 1416316539, NULL); + g_object_set (new, NM_SETTING_CONNECTION_TIMESTAMP, (guint64) 1416316539, NULL); /* First make sure they are different */ success = nm_setting_compare (old, new, NM_SETTING_COMPARE_FLAG_EXACT); |