Browse Source

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

tags/json-c-0.13-20171207
Eric Haszlakiewicz 8 years ago
parent
commit
8581806558
2 changed files with 3 additions and 2 deletions
  1. +2
    -0
      json_object_private.h
  2. +1
    -2
      json_util.c

+ 2
- 0
json_object_private.h View File

@@ -48,6 +48,8 @@ struct json_object
void *_userdata;
};

void _set_last_err(const char *err_fmt, ...);

#ifdef __cplusplus
}
#endif


+ 1
- 2
json_util.c 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);


Loading…
Cancel
Save