diff options
| author | Donatas Abraitis <donatas.abraitis@gmail.com> | 2019-10-15 09:14:16 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-15 09:14:16 +0300 |
| commit | 597ca790b3b3b81b5f21f6e35af56a2411a12655 (patch) | |
| tree | e1bebaea0b04fc7559b988e415bd9f27561c2ae9 /lib/json.c | |
| parent | 6b552f7bfb625ce4144473fb9ecee64f47113cbf (diff) | |
| parent | 7bdafd3b41e6fbcfdf74f3329f2daf797604ecee (diff) | |
Merge pull request #5130 from donaldsharp/as_path_json_maximum_overdrive
bgpd: AS paths are uint32_t instead of integers
Diffstat (limited to 'lib/json.c')
| -rw-r--r-- | lib/json.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/lib/json.c b/lib/json.c index efc3794040..991240639a 100644 --- a/lib/json.c +++ b/lib/json.c @@ -47,11 +47,7 @@ void json_object_string_add(struct json_object *obj, const char *key, void json_object_int_add(struct json_object *obj, const char *key, int64_t i) { -#if defined(HAVE_JSON_C_JSON_H) json_object_object_add(obj, key, json_object_new_int64(i)); -#else - json_object_object_add(obj, key, json_object_new_int((int)i)); -#endif } void json_object_boolean_false_add(struct json_object *obj, const char *key) @@ -78,16 +74,3 @@ void json_object_free(struct json_object *obj) { json_object_put(obj); } - -#if !defined(HAVE_JSON_C_JSON_H) -int json_object_object_get_ex(struct json_object *obj, const char *key, - struct json_object **value) -{ - *value = json_object_object_get(obj, key); - - if (*value) - return 1; - - return 0; -} -#endif |
