Make _set_last_err() non-static so it can be used outside of json_util.c

This commit is contained in:
Eric Haszlakiewicz
2017-06-04 18:25:51 +00:00
parent e76ea37772
commit 8581806558
2 changed files with 3 additions and 2 deletions

View File

@@ -48,6 +48,8 @@ struct json_object
void *_userdata;
};
void _set_last_err(const char *err_fmt, ...);
#ifdef __cplusplus
}
#endif

View File

@@ -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);