This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository enlightenment.

View the commit online.

commit 6d01e0bee7c302a9982a765e5e85afa6367b58bb
Author: Carsten Haitzler <[email protected]>
AuthorDate: Sun Feb 15 18:20:08 2026 +0000

    const char ptr warnings - silence
    
    nothing to actually worry about but less warning noise is better
---
 src/bin/e_client.c                       |  3 +--
 src/bin/e_fm.c                           | 15 ++++++++-------
 src/bin/e_font.c                         | 19 +++++++++----------
 src/bin/e_randr2.c                       |  3 ++-
 src/bin/e_remember.c                     |  2 +-
 src/bin/e_widget_filepreview.c           |  3 +--
 src/modules/everything/evry.c            |  2 +-
 src/modules/everything/evry_plug_files.c |  2 +-
 src/modules/fileman/e_int_config_mime.c  |  3 +--
 9 files changed, 25 insertions(+), 27 deletions(-)

diff --git a/src/bin/e_client.c b/src/bin/e_client.c
index a1efd604b..4968e6a6e 100644
--- a/src/bin/e_client.c
+++ b/src/bin/e_client.c
@@ -5264,9 +5264,8 @@ e_client_icon_add(E_Client *ec, Evas *evas)
           {
              if (!ec->internal_icon_key)
                {
-                  char *ext;
+                  const char *ext = strrchr(ec->internal_icon, '.');
 
-                  ext = strrchr(ec->internal_icon, '.');
                   if ((ext) && ((!strcmp(ext, ".edj"))))
                     {
                        o = edje_object_add(evas);
diff --git a/src/bin/e_fm.c b/src/bin/e_fm.c
index 12608ad59..cb5e44356 100644
--- a/src/bin/e_fm.c
+++ b/src/bin/e_fm.c
@@ -1012,10 +1012,10 @@ _e_fm2_cb_unmount_ok(void *data)
 void
 _e_fm2_path_parent_set(Evas_Object *obj, const char *path)
 {
-   char buf[PATH_MAX], *p;
    int idx;
+   char buf[PATH_MAX];
+   const char *p = strrchr(path, '/');
 
-   p = strrchr(path, '/');
    if (!p || (p == path))
      e_fm2_path_set(obj, "/", "/");
    else
@@ -9107,7 +9107,8 @@ _e_fm2_icon_menu(E_Fm2_Icon *ic, Evas_Object *obj, unsigned int timestamp)
    Eina_List *sel;
    Eina_List *l = NULL;
    int x, y, can_w, can_w2, protect;
-   char buf[PATH_MAX], *ext;
+   char buf[PATH_MAX];
+   const char *ext;
    Eina_Bool writable;
 
    sd = ic->sd;
@@ -10461,6 +10462,7 @@ static Evas_Object *
 _e_fm2_icon_entry_widget_add(E_Fm2_Icon *ic)
 {
    Evas *e;
+   const char *dot;
 
    if (ic->sd->iop_icon)
      _e_fm2_icon_entry_widget_accept(ic->sd->iop_icon);
@@ -10483,13 +10485,12 @@ _e_fm2_icon_entry_widget_add(E_Fm2_Icon *ic)
    e_widget_entry_text_set(ic->entry_widget, ic->info.file);
    e_widget_focus_set(ic->entry_widget, 1);
    ic->focus_hook = e_client_hook_add(E_CLIENT_HOOK_FOCUS_SET, _e_fm2_icon_entry_widget_focus_out, ic);
-   char *dot = strchr(ic->info.file, '.');
+
+   dot = strchr(ic->info.file, '.');
    if (dot)
      {
         int end = (int)((long)(dot - ic->info.file));
-        printf("SEL: %i -> %i\n", 0, end);
-        e_widget_entry_select_set(ic->entry_widget, 0,
-                                  (int)((long)(dot - ic->info.file)));
+        e_widget_entry_select_set(ic->entry_widget, 0, end);
      }
    else
      e_widget_entry_select_all(ic->entry_widget);
diff --git a/src/bin/e_font.c b/src/bin/e_font.c
index e7171019b..78fd044a2 100644
--- a/src/bin/e_font.c
+++ b/src/bin/e_font.c
@@ -154,12 +154,11 @@ e_font_fontconfig_name_parse(const char *font)
 static E_Font_Properties *
 _e_font_fontconfig_name_parse(Eina_Hash **font_hash, E_Font_Properties *efp, const char *font)
 {
-   char *s1;
-
-   s1 = strchr(font, ':');
+   const char *s1 = strchr(font, ':');
    if (s1)
      {
-        char *s2, *name, *style, *temp;
+        const char *s2;
+        char *name, *style, *temp;
         int len;
 
         len = s1 - font;
@@ -184,7 +183,7 @@ _e_font_fontconfig_name_parse(Eina_Hash **font_hash, E_Font_Properties *efp, con
 
         if (strncmp(s1, E_TOK_STYLE, strlen(E_TOK_STYLE)) == 0)
           {
-             style = s1 + strlen(E_TOK_STYLE);
+             s1 = s1 + strlen(E_TOK_STYLE);
 
              if (font_hash) efp = eina_hash_find(*font_hash, name);
              if (!efp)
@@ -197,20 +196,20 @@ _e_font_fontconfig_name_parse(Eina_Hash **font_hash, E_Font_Properties *efp, con
                        eina_hash_add(*font_hash, name, efp);
                     }
                }
-             s2 = strchr(style, ',');
+             s2 = strchr(s1, ',');
              if (s2)
                {
-                  char *style_old;
+                  const char *style_old;
 
-                  len = s2 - style;
-                  style_old = style;
+                  len = s2 - s1;
+                  style_old = s1;
                   style = calloc(len + 1, sizeof(char));
                   strncpy(style, style_old, len);
                   efp->styles = eina_list_append(efp->styles, eina_stringshare_add(style));
                   free(style);
                }
              else
-               efp->styles = eina_list_append(efp->styles, eina_stringshare_add(style));
+               efp->styles = eina_list_append(efp->styles, eina_stringshare_add(s1));
           }
         free(name);
      }
diff --git a/src/bin/e_randr2.c b/src/bin/e_randr2.c
index 562a64689..0534f4830 100644
--- a/src/bin/e_randr2.c
+++ b/src/bin/e_randr2.c
@@ -1076,7 +1076,8 @@ static E_Randr2_Screen *
 _screen_fuzzy_fallback_find(E_Config_Randr2 *cfg, const char *id)
 {
    E_Randr2_Screen *s = NULL;
-   char *p, *name;
+   char *name;
+   const char *p;
 
    // strip out everythng in the string from / on as that is edid
    // and fall back to finding just the output name in the rel
diff --git a/src/bin/e_remember.c b/src/bin/e_remember.c
index 60ca87aac..82a9bcbfa 100644
--- a/src/bin/e_remember.c
+++ b/src/bin/e_remember.c
@@ -173,7 +173,7 @@ _e_remember_restore_idler_cb(void *d EINA_UNUSED)
           }
         else if (!strncmp(rem->class, "_config::", 9))
           {
-             char *param = NULL;
+             const char *param;
              char path[1024];
              const char *p;
 
diff --git a/src/bin/e_widget_filepreview.c b/src/bin/e_widget_filepreview.c
index 420e4b929..b0c9d3615 100644
--- a/src/bin/e_widget_filepreview.c
+++ b/src/bin/e_widget_filepreview.c
@@ -312,8 +312,7 @@ _e_wid_fprev_preview_video_widgets(E_Widget_Data *wd)
 {
    Evas *evas = evas_object_evas_get(wd->obj);
    Evas_Object *table, *o, *em, *win;
-   const char *mime, *path;
-   char *ext;
+   const char *mime, *path, *ext;
    Eina_Bool audio_artwork;
    int mw, mh, y = 3;
 
diff --git a/src/modules/everything/evry.c b/src/modules/everything/evry.c
index be9ab0553..c3a24ef9e 100644
--- a/src/modules/everything/evry.c
+++ b/src/modules/everything/evry.c
@@ -1290,7 +1290,7 @@ static int
 _evry_selector_thumb(Evry_Selector *sel, const Evry_Item *it)
 {
    Evry_Window *win = sel->win;
-   char *suffix = NULL;
+   const char *suffix = NULL;
 
    if (sel->do_thumb)
      e_thumb_icon_end(sel->o_thumb);
diff --git a/src/modules/everything/evry_plug_files.c b/src/modules/everything/evry_plug_files.c
index 5cde6c5c7..ee3c5ed22 100644
--- a/src/modules/everything/evry_plug_files.c
+++ b/src/modules/everything/evry_plug_files.c
@@ -960,7 +960,7 @@ _recentf_items_add_cb(const Eina_Hash *hash EINA_UNUSED, const void *key, void *
      {
         /* dont show recent files from same dir */
         int len = strlen(p->directory);
-        char *end = strrchr(path, '/');
+        const char *end = strrchr(path, '/');
         if (strncmp(path, p->directory, len) ||
             (end - path) <= len)
           {
diff --git a/src/modules/fileman/e_int_config_mime.c b/src/modules/fileman/e_int_config_mime.c
index 60f00e30b..196ce784f 100644
--- a/src/modules/fileman/e_int_config_mime.c
+++ b/src/modules/fileman/e_int_config_mime.c
@@ -220,9 +220,8 @@ _fill_list(E_Config_Dialog_Data *cfdata, const char *mtype)
           snprintf(buf, sizeof(buf), "e/icons/fileman/mime/%s", m->mime);
         else
           {
-             char *p;
+             const char *p = strrchr(tmp, '.');
 
-             p = strrchr(tmp, '.');
              if ((p) && (!strcmp(p, ".edj")))
                edj = 1;
              else if (p)

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to