switch (key) {
case STORAGE_KEY_PM_STATE: {
GHashTableIter iter;
- gpointer key, value;
+ gpointer key_info, value_info;
gint pm_state = S_INDI_ZERO;
if (!g_variant_is_of_type(tmp, G_VARIANT_TYPE_INT32)) {
dbg("PM state Value:[%d]", pm_state);
g_hash_table_iter_init(&iter, priv_info->state_info);
- while (g_hash_table_iter_next(&iter, &key, &value)) {
- state_info = value;
+ while (g_hash_table_iter_next(&iter, &key_info, &value_info)) {
+ state_info = value_info;
state_info->dormant_info.lcd_state = pm_state;
}
}