summaryrefslogtreecommitdiff
path: root/src/e_mod_udisks_eldbus.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/e_mod_udisks_eldbus.c')
-rw-r--r--src/e_mod_udisks_eldbus.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/e_mod_udisks_eldbus.c b/src/e_mod_udisks_eldbus.c
index e448361..a6b923b 100644
--- a/src/e_mod_udisks_eldbus.c
+++ b/src/e_mod_udisks_eldbus.c
@@ -3,7 +3,7 @@
3# include "config.h" 3# include "config.h"
4#endif 4#endif
5 5
6#ifdef HAVE_ELDBUS 6#ifdef PLACES_HAVE_ELDBUS
7 7
8#include <e.h> 8#include <e.h>
9#include <Eldbus.h> 9#include <Eldbus.h>
@@ -211,7 +211,7 @@ _places_udisks_vol_props_cb(void *data, const Eldbus_Message *msg, Eldbus_Pendin
211 { 211 {
212 Eldbus_Message_Iter *var; 212 Eldbus_Message_Iter *var;
213 const char *key; 213 const char *key;
214 Eina_Bool bool; 214 Eina_Bool bool_ret;
215 215
216 if (!eldbus_message_iter_arguments_get(dict, "sv", &key, &var)) 216 if (!eldbus_message_iter_arguments_get(dict, "sv", &key, &var))
217 continue; 217 continue;
@@ -219,14 +219,14 @@ _places_udisks_vol_props_cb(void *data, const Eldbus_Message *msg, Eldbus_Pendin
219 // skip volumes with volume.ignore set 219 // skip volumes with volume.ignore set
220 if (!strcmp(key, "DeviceIsMediaChangeDetectionInhibited")) 220 if (!strcmp(key, "DeviceIsMediaChangeDetectionInhibited"))
221 { 221 {
222 eldbus_message_iter_arguments_get(var, "b", &bool); 222 eldbus_message_iter_arguments_get(var, "b", &bool_ret);
223 if (bool) return; 223 if (bool_ret) return;
224 } 224 }
225 // skip volumes with presentation.hide set 225 // skip volumes with presentation.hide set
226 if (!strcmp(key, "DevicePresentationHide")) 226 if (!strcmp(key, "DevicePresentationHide"))
227 { 227 {
228 eldbus_message_iter_arguments_get(var, "b", &bool); 228 eldbus_message_iter_arguments_get(var, "b", &bool_ret);
229 if (bool) return; 229 if (bool_ret) return;
230 } 230 }
231 else if (!strcmp(key, "IdUsage")) 231 else if (!strcmp(key, "IdUsage"))
232 eldbus_message_iter_arguments_get(var, "s", &id_usage); 232 eldbus_message_iter_arguments_get(var, "s", &id_usage);