diff options
| author | Christian Göttsche | 2024-05-29 20:38:23 +0200 |
|---|---|---|
| committer | jvoisin | 2024-06-06 16:27:35 +0200 |
| commit | f40955e03cd361966f927acfaa477cfceb8930e5 (patch) | |
| tree | be4213dd027ea2a8f0784068c5c84e2b5fd837ef /src/sp_config.h | |
| parent | d82ab8d20191a9ebdb83f918c62fc6c32f068b01 (diff) | |
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.
Diffstat (limited to 'src/sp_config.h')
| -rw-r--r-- | src/sp_config.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 { | |||
| 188 | 188 | ||
| 189 | typedef struct { | 189 | typedef struct { |
| 190 | SP_PARSE_FN((*func)); | 190 | SP_PARSE_FN((*func)); |
| 191 | char *token; | 191 | const char *token; |
| 192 | void *retval; | 192 | void *retval; |
| 193 | } sp_config_keyword; | 193 | } sp_config_keyword; |
| 194 | 194 | ||
