diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-09-15 09:18:44 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-09-15 09:19:53 +0800 |
commit | 7989aa01ac4d48dbb5dda7a106a270fe381f2852 (patch) | |
tree | 07a0a337cb4be8dbf75f1ed37ee9806f7450786c /token.h | |
parent | e3141f7969a75d363a173f9e2ae07da67753c4da (diff) |
const qualifiers for arguments
when there won't be any more memory allocated for them.
The redirect inline function params are swapped a bit.
Diffstat (limited to 'token.h')
-rw-r--r-- | token.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1,6 +1,6 @@ #include <json.h> -static inline void token_parse(char *tok, struct session *session) +static inline void token_parse(const char *tok, struct session *session) { json_tokener *tokener = json_tokener_new(); json_object *obj = json_tokener_parse_ex(tokener, tok, strlen(tok)); |