Change function name
[platform/core/system/feedbackd.git] / src / haptic / haptic.c
index 5ccf572..b5b3b93 100644 (file)
@@ -1188,7 +1188,7 @@ static void haptic_poweroff_cb(GDBusConnection  *conn,
        int ret, level;
        struct timespec time = {0,};
 
-       if (!dh_get_param_from_var(param, "(i)", &type)) {
+       if (!g_variant_get_safe(param, "(i)", &type)) {
                _E("Failed to get params from gvariant. expected:%s, type:%s", "(i)", g_variant_get_type_string(param));
                return;
        }