From d0852c80a93e209f9bb186728ff6cbdae09ead0b Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Thu, 23 Oct 2008 14:59:59 +0300 Subject: Fix registration_status_change parameter parsing --- audio/telephony-maemo.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/audio/telephony-maemo.c b/audio/telephony-maemo.c index 681c9341..214468b8 100644 --- a/audio/telephony-maemo.c +++ b/audio/telephony-maemo.c @@ -130,8 +130,8 @@ static struct { uint32_t cell_id; uint32_t operator_code; uint32_t country_code; - uint16_t network_type; - uint16_t supported_services; + uint8_t network_type; + uint8_t supported_services; uint16_t signals_bar; char *operator_name; } net = { @@ -812,8 +812,8 @@ static void handle_registration_status_change(DBusMessage *msg) DBUS_TYPE_UINT32, &cell_id, DBUS_TYPE_UINT32, &operator_code, DBUS_TYPE_UINT32, &country_code, - DBUS_TYPE_UINT16, &network_type, - DBUS_TYPE_UINT16, &supported_services, + DBUS_TYPE_BYTE, &network_type, + DBUS_TYPE_BYTE, &supported_services, DBUS_TYPE_INVALID)) { error("Unexpected parameters in registration_status_change"); return; -- cgit