summaryrefslogtreecommitdiff
path: root/lib/json.h
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas.abraitis@gmail.com>2019-10-15 09:14:16 +0300
committerGitHub <noreply@github.com>2019-10-15 09:14:16 +0300
commit597ca790b3b3b81b5f21f6e35af56a2411a12655 (patch)
treee1bebaea0b04fc7559b988e415bd9f27561c2ae9 /lib/json.h
parent6b552f7bfb625ce4144473fb9ecee64f47113cbf (diff)
parent7bdafd3b41e6fbcfdf74f3329f2daf797604ecee (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.h')
-rw-r--r--lib/json.h17
1 files changed, 1 insertions, 16 deletions
diff --git a/lib/json.h b/lib/json.h
index c4d566b318..c8866c524a 100644
--- a/lib/json.h
+++ b/lib/json.h
@@ -25,7 +25,7 @@
extern "C" {
#endif
-#if defined(HAVE_JSON_C_JSON_H)
+#include "command.h"
#include <json-c/json.h>
/*
@@ -41,21 +41,6 @@ extern "C" {
json_object_iter_equal(&(joi), &(join)) == 0; \
json_object_iter_next(&(joi)))
-#else
-#include <json/json.h>
-
-/*
- * json_object_to_json_string_ext is only available for json-c
- * so let's just turn it back to the original usage.
- */
-#define json_object_to_json_string_ext(A, B) json_object_to_json_string (A)
-
-extern int json_object_object_get_ex(struct json_object *obj, const char *key,
- struct json_object **value);
-#endif
-
-#include "command.h"
-
extern bool use_json(const int argc, struct cmd_token *argv[]);
extern void json_object_string_add(struct json_object *obj, const char *key,
const char *s);