Reformat count_ptrs().

git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@707 7dcaeef0-15fb-0310-b436-a5af3365683c
This commit is contained in:
Andreas Schneider
2009-05-04 10:27:37 +00:00
parent 503bc1b95f
commit d9a0b90701

View File

@@ -1703,12 +1703,13 @@ static int channel_protocol_select(CHANNEL **rchans, CHANNEL **wchans,
return 0;
}
/* just count number of pointers in the array */
static int count_ptrs(CHANNEL **ptrs){
int c;
for(c=0;ptrs[c];++c)
;
return c;
/* Just count number of pointers in the array */
static int count_ptrs(CHANNEL **ptrs) {
int c;
for (c = 0; ptrs[c] != NULL; c++)
;
return c;
}
/** the list of pointers are then actualized and will only contain pointers to