projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #1842 from rubenk/declare-loop-variable-in-for-loop-controlling...
[collectd.git]
/
src
/
olsrd.c
diff --git
a/src/olsrd.c
b/src/olsrd.c
index
0af32dc
..
899ad3e
100644
(file)
--- a/
src/olsrd.c
+++ b/
src/olsrd.c
@@
-150,7
+150,7
@@
static size_t strtabsplit (char *string, char **fields, size_t size) /* {{{ */
static FILE *olsrd_connect (void) /* {{{ */
{
static FILE *olsrd_connect (void) /* {{{ */
{
- struct addrinfo *ai_list
, *ai_ptr
;
+ struct addrinfo *ai_list;
int ai_return;
FILE *fh;
int ai_return;
FILE *fh;
@@
-173,7
+173,7
@@
static FILE *olsrd_connect (void) /* {{{ */
}
fh = NULL;
}
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;
{
int fd;
int status;