finish char* to const char* conversion
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Fri, 30 Apr 2010 08:17:53 +0000 (08:17 +0000)
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Fri, 30 Apr 2010 08:17:53 +0000 (08:17 +0000)
SVN revision: 48461

src/bin/e_fm.c
src/bin/e_fm_hal.c
src/bin/e_fm_hal.h
src/bin/e_fm_main.c
src/bin/e_fm_shared.h

index 1717ee7..e6cbfd4 100644 (file)
@@ -1304,7 +1304,8 @@ EAPI void
 e_fm2_parent_go(Evas_Object *obj)
 {
    E_Fm2_Smart_Data *sd;
-   char *path, *p;
+   char *p;
+   const char *path;
 
    sd = evas_object_smart_data_get(obj);
    if (!sd) return; // safety
@@ -9691,7 +9692,7 @@ static void
 _e_fm2_volume_mount(void *data, E_Menu *m, E_Menu_Item *mi)
 {
    E_Volume *v;
-   char *mp;
+   const char *mp;
    
    v = data;
    if (!v) return;
index ef41034..377e29b 100644 (file)
@@ -144,7 +144,7 @@ e_fm2_hal_volume_add(E_Volume *v)
        if ((!v->mount_point) || (v->mount_point[0] == 0))
          {
             char buf[PATH_MAX];
-            char *id;
+            const char *id;
             
             if (v->mount_point) eina_stringshare_del(v->mount_point);
             v->mount_point = NULL;
@@ -378,7 +378,7 @@ e_fm2_hal_volume_find(const char *udi)
    return NULL;
 }
 
-EAPI char *
+EAPI const char *
 e_fm2_hal_volume_mountpoint_get(E_Volume *v)
 {
    char buf[PATH_MAX] = {0};
index 521daa4..f1177ea 100644 (file)
@@ -14,7 +14,7 @@ EAPI E_Storage   *e_fm2_hal_storage_find(const char *udi);
 EAPI void         e_fm2_hal_volume_add(E_Volume *s);
 EAPI void         e_fm2_hal_volume_del(E_Volume *s);
 EAPI E_Volume    *e_fm2_hal_volume_find(const char *udi);
-EAPI char        *e_fm2_hal_volume_mountpoint_get(E_Volume *v);
+EAPI const char  *e_fm2_hal_volume_mountpoint_get(E_Volume *v);
 
 EAPI void         e_fm2_hal_mount_add(E_Volume *v, const char *mountpoint);
 EAPI void         e_fm2_hal_mount_del(E_Volume *v);
index 87dc82d..f23c96c 100644 (file)
@@ -956,7 +956,7 @@ e_volume_mount(E_Volume *v)
 {
    char buf[256];
    char buf2[256];
-   char *mount_point;
+   const char *mount_point;
    Eina_List *opt = NULL;
 
    if (!v || v->guard || !v->mount_point || strncmp(v->mount_point, "/media/", 7))
index 3fc3f42..1f85893 100644 (file)
@@ -22,7 +22,7 @@ struct _E_Storage
 
    struct 
      {
-        char *drive, *volume;
+        const char *drive, *volume;
      } icon;
 
    Eina_List *volumes;