aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2009-11-17 14:16:24 -0800
committerDan Williams <dcbw@redhat.com>2009-11-17 14:16:24 -0800
commit3193e97bb809d10367ece12e91245eeecca711b9 (patch)
tree2d2fda830a1d33e31d4bcac4575d4e5c6caf295b
parent74f679acdb8caa15c59b6b84b6a117a144426720 (diff)
probe: fix probing on PPC due to missing cast
gcc will interpret the constant value as a uint32 but the port's set_property() was taking it as a uint64. Thus the top 32 bits were probably garbage, and messed up on big-endian architectures leading to random large probe delays.
-rw-r--r--src/mm-plugin-base.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mm-plugin-base.c b/src/mm-plugin-base.c
index 7455046f..540670aa 100644
--- a/src/mm-plugin-base.c
+++ b/src/mm-plugin-base.c
@@ -489,7 +489,7 @@ mm_plugin_base_probe_port (MMPluginBase *self,
serial = mm_serial_port_new (name, MM_PORT_TYPE_PRIMARY);
g_object_set (serial,
- MM_SERIAL_PORT_SEND_DELAY, 100000,
+ MM_SERIAL_PORT_SEND_DELAY, (guint64) 100000,
MM_PORT_CARRIER_DETECT, FALSE,
NULL);