diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2023-09-21 12:24:26 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2023-09-22 11:43:16 +0200 |
commit | d8c4276e7eac1728b3ff190cd66f28a5a22f655b (patch) | |
tree | f6cdcaa5e1911c901a4407babfa8f76f704bd103 /lib | |
parent | c594e71d5dc122ca2d7254ea6b3ebf8429c3ee49 (diff) | |
download | barebox-d8c4276e7eac1728b3ff190cd66f28a5a22f655b.tar.gz barebox-d8c4276e7eac1728b3ff190cd66f28a5a22f655b.tar.xz |
lib: rename json_strcpy to json_strdup
jsmn_strcpy is an unfortunate name for a function that allocates
memory. Rename it to jsmn_strdup instead.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20230921102426.1109289-4-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/jsmn.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/jsmn.c b/lib/jsmn.c index 9e624f7518..10a77886a8 100644 --- a/lib/jsmn.c +++ b/lib/jsmn.c @@ -483,7 +483,7 @@ JSMN_API const jsmntok_t *jsmn_locate(const char *path[], const char *json, return tokens; } -JSMN_API char *jsmn_strcpy(const char *path[], const char *json, +JSMN_API char *jsmn_strdup(const char *path[], const char *json, const jsmntok_t *tokens) { const jsmntok_t *node; |