summaryrefslogtreecommitdiff
path: root/token.h
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2022-09-15 09:18:44 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2022-09-15 09:19:53 +0800
commit7989aa01ac4d48dbb5dda7a106a270fe381f2852 (patch)
tree07a0a337cb4be8dbf75f1ed37ee9806f7450786c /token.h
parente3141f7969a75d363a173f9e2ae07da67753c4da (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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/token.h b/token.h
index 0154ef5..c0c1f82 100644
--- a/token.h
+++ b/token.h
@@ -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));