This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository terminology.
View the commit online.
commit d31e5f72546be5289e731cbbe4b9e0f33322a763
Author: Carsten Haitzler <[email protected]>
AuthorDate: Sat Feb 28 20:53:56 2026 +0000
fix const char ptr return discard warnings
---
src/bin/options_font.c | 6 +++---
src/bin/termio.c | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/bin/options_font.c b/src/bin/options_font.c
index 2f367a1c..f35fbe79 100644
--- a/src/bin/options_font.c
+++ b/src/bin/options_font.c
@@ -69,7 +69,7 @@ _parse_font_name(const char *full_name,
char buf[4096];
size_t style_len = 0;
size_t font_len = 0;
- char *style = NULL;
+ const char *style = NULL;
char *s;
unsigned int len;
@@ -83,7 +83,7 @@ _parse_font_name(const char *full_name,
if (style)
font_len = (size_t)(style - full_name);
- s = strchr(full_name, ',');
+ s = (char *)strchr(full_name, ',');
if (s && style && s < style)
font_len = s - full_name;
@@ -91,7 +91,7 @@ _parse_font_name(const char *full_name,
if (style && strncmp(style, STYLE_STR, strlen(STYLE_STR)) == 0)
{
style += strlen(STYLE_STR);
- s = strchr(style, ',');
+ s = (char *)strchr(style, ',');
style_len = (s == NULL) ? strlen(style) : (size_t)(s - style);
}
diff --git a/src/bin/termio.c b/src/bin/termio.c
index 33c908c2..1d8dc987 100644
--- a/src/bin/termio.c
+++ b/src/bin/termio.c
@@ -4000,7 +4000,7 @@ _smart_pty_command(void *data)
}
else if (ty->cur_cmd[1] == 'd') // data packet
{
- char *p = strchr(ty->cur_cmd, ' ');
+ const char *p = strchr(ty->cur_cmd, ' ');
Eina_Bool valid = EINA_TRUE;
if (p)
@@ -4139,8 +4139,8 @@ _smart_cb_drop(void *data,
const char *p = ev->data;
while (p)
{
- char *new_line = strchr(p, '\n');
- char *carriage_return = strchr(p, '\r');
+ const char *new_line = strchr(p, '\n');
+ const char *carriage_return = strchr(p, '\r');
if (new_line && carriage_return)
{
if (carriage_return < new_line)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.