summaryrefslogtreecommitdiff
path: root/src/bin/eeze
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2013-05-07 22:27:11 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2013-05-07 22:27:11 +0200
commitf1349c25d436a329c16692eb4997ab33313e017e (patch)
treea5134ca7f21f1d49ffbec2a672e64eff27f32a4d /src/bin/eeze
parent57b2cb52394cf808e22cbb5b6b7f267dab1ac4b3 (diff)
eeze_scanner: harmless type casts fixes
Diffstat (limited to 'src/bin/eeze')
-rw-r--r--src/bin/eeze/eeze_scanner.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/bin/eeze/eeze_scanner.c b/src/bin/eeze/eeze_scanner.c
index d7dda1587c..800c1d70c2 100644
--- a/src/bin/eeze/eeze_scanner.c
+++ b/src/bin/eeze/eeze_scanner.c
@@ -295,10 +295,10 @@ cb_vol_chg(const char *device, Eeze_Udev_Event ev, void *data EINA_UNUSED, Eeze_
295 295
296 DBG("device='%s'", device); 296 DBG("device='%s'", device);
297 297
298 if (ev == EEZE_UDEV_EVENT_ONLINE) ev = EEZE_SCANNER_EVENT_TYPE_ADD; 298 if (ev == EEZE_UDEV_EVENT_ONLINE) ev = EEZE_UDEV_EVENT_ADD;
299 else if (ev == EEZE_UDEV_EVENT_OFFLINE) ev = EEZE_SCANNER_EVENT_TYPE_REMOVE; 299 else if (ev == EEZE_UDEV_EVENT_OFFLINE) ev = EEZE_UDEV_EVENT_REMOVE;
300 300
301 event_send(device, ev, EINA_TRUE); 301 event_send(device, (Eeze_Scanner_Event_Type)ev, EINA_TRUE);
302 switch (ev) 302 switch (ev)
303 { 303 {
304 case EEZE_UDEV_EVENT_ADD: 304 case EEZE_UDEV_EVENT_ADD:
@@ -344,7 +344,7 @@ cb_stor_chg(const char *device, Eeze_Udev_Event ev, void *data EINA_UNUSED, Eeze
344 case EEZE_UDEV_EVENT_ADD: 344 case EEZE_UDEV_EVENT_ADD:
345 case EEZE_UDEV_EVENT_ONLINE: 345 case EEZE_UDEV_EVENT_ONLINE:
346 INF("Added device '%s'", device); 346 INF("Added device '%s'", device);
347 event_send(device, ev, EINA_FALSE); 347 event_send(device, (Eeze_Scanner_Event_Type)ev, EINA_FALSE);
348 str = eeze_udev_syspath_get_property(device, "ID_CDROM"); 348 str = eeze_udev_syspath_get_property(device, "ID_CDROM");
349 if (!str) 349 if (!str)
350 { 350 {
@@ -367,7 +367,7 @@ cb_stor_chg(const char *device, Eeze_Udev_Event ev, void *data EINA_UNUSED, Eeze
367 if ((!dev) || (dev->device != device)) return; 367 if ((!dev) || (dev->device != device)) return;
368 } 368 }
369 INF("Removed device '%s'", device); 369 INF("Removed device '%s'", device);
370 event_send(device, ev, EINA_FALSE); 370 event_send(device, (Eeze_Scanner_Event_Type)ev, EINA_FALSE);
371 EINA_LIST_FOREACH(storage_cdrom, l, dev) 371 EINA_LIST_FOREACH(storage_cdrom, l, dev)
372 if (device == dev->device) 372 if (device == dev->device)
373 { 373 {