jsoninfo: rename a function
authorFerry Huberts <ferry.huberts@pelagic.nl>
Thu, 26 Nov 2015 19:05:35 +0000 (20:05 +0100)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Fri, 27 Nov 2015 09:17:22 +0000 (10:17 +0100)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
lib/jsoninfo/src/olsrd_jsoninfo.c

index 494dbcd..18e45c0 100644 (file)
@@ -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);