summaryrefslogtreecommitdiff
path: root/src/format.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/format.c')
-rw-r--r--src/format.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/format.c b/src/format.c
index 985a527..18e3f5e 100644
--- a/src/format.c
+++ b/src/format.c
@@ -153,9 +153,9 @@ EXPORT_SYMBOL int HXformat_add(struct HXformat_map *blk, const char *key,
static __inline__ char *HX_strchr0(const char *s, char c)
{
- char *ret = strchr(s, c);
+ const char *ret = strchr(s, c);
if (ret != NULL)
- return ret;
+ return const_cast1(char *, ret);
return const_cast1(char *, s) + strlen(s);
}