diff options
author | Eric Haszlakiewicz <erh+git@nimenees.com> | 2017-06-04 18:25:51 +0000 |
---|---|---|
committer | Eric Haszlakiewicz <erh+git@nimenees.com> | 2017-06-18 18:11:17 +0000 |
commit | 85818065583555df66b22428cf372f2c6ac0fde4 (patch) | |
tree | b2eacda341f7ed4bebc35467356c6ab45c9cd73d /json_util.c | |
parent | e76ea3777260ddc9d19285460ad250ca6de17769 (diff) | |
download | json-c-85818065583555df66b22428cf372f2c6ac0fde4.tar.gz |
Make _set_last_err() non-static so it can be used outside of json_util.c
Diffstat (limited to 'json_util.c')
-rw-r--r-- | json_util.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/json_util.c b/json_util.c index b66c3dc..d7351dd 100644 --- a/json_util.c +++ b/json_util.c @@ -64,7 +64,6 @@ static int sscanf_is_broken = 0; static int sscanf_is_broken_testdone = 0; static void sscanf_is_broken_test(void); -static void _set_last_err(const char *err_fmt, ...); static char _last_err[256] = ""; @@ -75,7 +74,7 @@ const char *json_util_get_last_err() return _last_err; } -static void _set_last_err(const char *err_fmt, ...) +void _set_last_err(const char *err_fmt, ...) { va_list ap; va_start(ap, err_fmt); |