diff --git a/src/olsrd.c b/src/olsrd.c
index 7838ebaaa2f90ed96164a19dfba6c37e4bc09591..899ad3e8f2ef4e565cb782c4290f8cfbf08f39cf 100644 (file)
--- a/src/olsrd.c
+++ b/src/olsrd.c
**/
#include "collectd.h"
+
#include "common.h"
#include "plugin.h"
static FILE *olsrd_connect (void) /* {{{ */
{
- struct addrinfo *ai_list, *ai_ptr;
+ struct addrinfo *ai_list;
int ai_return;
FILE *fh;
}
fh = NULL;
- for (ai_ptr = ai_list; ai_ptr != NULL; ai_ptr = ai_ptr->ai_next)
+ for (struct addrinfo *ai_ptr = ai_list; ai_ptr != NULL; ai_ptr = ai_ptr->ai_next)
{
int fd;
int status;