**/
#include "collectd.h"
+
#include "common.h"
#include "plugin.h"
{
int sk = -1;
int status;
- struct addrinfo *ai;
struct addrinfo *ai_list;
const char *host;
const char *port;
return (-1);
}
- for (ai = ai_list; ai != NULL; ai = ai->ai_next)
+ for (struct addrinfo *ai = ai_list; ai != NULL; ai = ai->ai_next)
{
sk = socket (ai->ai_family, SOCK_STREAM, 0);
if (sk < 0)