From e8d164515006738f00e0f87bf35b5bfde6b80605 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 19 Feb 2016 14:18:14 +1000 Subject: [PATCH] ratbagctl: Switch ActiveProfile parsing to an integer Fallout from c04f1b57aa89e Signed-off-by: Peter Hutterer --- src/ratbagctl.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/ratbagctl.c b/src/ratbagctl.c index 49460f2e..c294c391 100644 --- a/src/ratbagctl.c +++ b/src/ratbagctl.c @@ -487,13 +487,9 @@ static int show_device_print(struct ratbagctl *ctl, const char *device) r = sd_bus_message_exit_container(reply); } else if (streq(property, "ActiveProfile")) { - r = sd_bus_message_read(reply, "v", "o", &profile); + r = sd_bus_message_read(reply, "v", "u", &prop_active_profile); if (r < 0) goto exit; - - r = show_device_get_profile_index(ctl, - profile, - &prop_active_profile); } else { r = sd_bus_message_skip(reply, "v"); }