X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=olsrd%2Fpatches%2F001-fix-jsoninfo.patch;fp=olsrd%2Fpatches%2F001-fix-jsoninfo.patch;h=0000000000000000000000000000000000000000;hb=654615db01d29e658c42ba9f0922177849e48dce;hp=52dfb0b50143e8982db0eae4c5fecc904a1f6dab;hpb=179f55280fca29aff8e6b982275436a3ee3c42a7;p=lede-routing%2F.git diff --git a/olsrd/patches/001-fix-jsoninfo.patch b/olsrd/patches/001-fix-jsoninfo.patch deleted file mode 100644 index 52dfb0b..0000000 --- a/olsrd/patches/001-fix-jsoninfo.patch +++ /dev/null @@ -1,22 +0,0 @@ -diff --git a/lib/jsoninfo/src/olsrd_jsoninfo.c b/lib/jsoninfo/src/olsrd_jsoninfo.c -index 3f7b7b9..966292c 100644 ---- a/lib/jsoninfo/src/olsrd_jsoninfo.c -+++ b/lib/jsoninfo/src/olsrd_jsoninfo.c -@@ -1283,7 +1283,7 @@ send_info(unsigned int send_what, int the_socket) - abuf_init(&abuf, 32768); - - // only add if outputing JSON -- if (send_what & SIW_ALL) abuf_json_open_array_entry(&abuf); -+ if (send_what & SIW_ALL) abuf_puts(&abuf, "{"); - - if ((send_what & SIW_LINKS) == SIW_LINKS) ipc_print_links(&abuf); - if ((send_what & SIW_NEIGHBORS) == SIW_NEIGHBORS) ipc_print_neighbors(&abuf); -@@ -1305,7 +1305,7 @@ send_info(unsigned int send_what, int the_socket) - abuf_json_int(&abuf, "timeSinceStartup", now_times); - if(*uuid != 0) - abuf_json_string(&abuf, "uuid", uuid); -- abuf_json_close_array_entry(&abuf); -+ abuf_puts(&abuf, "}\n"); - } - - /* this outputs the olsrd.conf text directly, not JSON */