[Olsr-dev] [PATCH v1 39/44] jsoninfo: rename a function

Ferry Huberts (spam-protected)
Fri Nov 27 10:43:32 CET 2015


From: Ferry Huberts <(spam-protected)>

Signed-off-by: Ferry Huberts <(spam-protected)>
---
 lib/jsoninfo/src/olsrd_jsoninfo.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/lib/jsoninfo/src/olsrd_jsoninfo.c b/lib/jsoninfo/src/olsrd_jsoninfo.c
index 494dbcd..18e45c0 100644
--- a/lib/jsoninfo/src/olsrd_jsoninfo.c
+++ b/lib/jsoninfo/src/olsrd_jsoninfo.c
@@ -1305,7 +1305,7 @@ static void ipc_print_interfaces(struct autobuf *abuf) {
   abuf_json_mark_object(false, true, abuf, NULL);
 }
 
-static void jsoninfo_write_data(void *foo __attribute__ ((unused))) {
+static void info_write_data(void *foo __attribute__ ((unused))) {
   fd_set set;
   int result, i, j, max;
   struct timeval tv;
@@ -1426,9 +1426,7 @@ static void send_info(unsigned int send_what, int the_socket) {
   outbuffer_count++;
 
   if (outbuffer_count == 1) {
-    writetimer_entry = olsr_start_timer(100, 0,
-    OLSR_TIMER_PERIODIC, &jsoninfo_write_data,
-    NULL, 0);
+    writetimer_entry = olsr_start_timer(100, 0, OLSR_TIMER_PERIODIC, &info_write_data, NULL, 0);
   }
 
   abuf_free(&abuf);
-- 
2.5.0




More information about the Olsr-dev mailing list