fix copy-pasted parameter name

Sat, 02 Nov 2024 20:17:38 +0100

author
Mike Becker <universe@uap-core.de>
date
Sat, 02 Nov 2024 20:17:38 +0100
changeset 974
ed44741d8ab5
parent 973
05910a8994f7
child 975
96bf02371aef

fix copy-pasted parameter name

src/cx/json.h file | annotate | diff | comparison | revisions
--- a/src/cx/json.h	Sat Nov 02 19:37:59 2024 +0100
+++ b/src/cx/json.h	Sat Nov 02 20:17:38 2024 +0100
@@ -182,12 +182,12 @@
 __attribute__((__nonnull__))
 int cxJsonFilln(CxJson *json, const char *buf, size_t len);
 
-#define cxJsonFill(prop, str) _Generic((str), \
+#define cxJsonFill(json, str) _Generic((str), \
     cxstring: cx_json_fill_cxstr,             \
     cxmutstr: cx_json_fill_mutstr,            \
     char*: cx_json_fill_str,                  \
     const char*: cx_json_fill_str)            \
-    (prop, str)
+    (json, str)
 
 __attribute__((__nonnull__))
 static inline int cx_json_fill_cxstr(

mercurial