From f40955e03cd361966f927acfaa477cfceb8930e5 Mon Sep 17 00:00:00 2001 From: Christian Göttsche Date: Wed, 29 May 2024 20:38:23 +0200 Subject: Avoid dropping const qualifier in casts Adjusts casts to void dropping const qualifiers. This helps to avoid mistakes, e.g. modifying string literals. Also use size_t for length, similar to the upstream php interfaces. --- src/sp_config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sp_config.h') diff --git a/src/sp_config.h b/src/sp_config.h index f957d15..f245943 100644 --- a/src/sp_config.h +++ b/src/sp_config.h @@ -188,7 +188,7 @@ typedef struct { typedef struct { SP_PARSE_FN((*func)); - char *token; + const char *token; void *retval; } sp_config_keyword; -- cgit v1.3