mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-10 18:28:10 +09:00
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:
@@ -1703,11 +1703,12 @@ static int channel_protocol_select(CHANNEL **rchans, CHANNEL **wchans,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* just count number of pointers in the array */
|
/* Just count number of pointers in the array */
|
||||||
static int count_ptrs(CHANNEL **ptrs){
|
static int count_ptrs(CHANNEL **ptrs) {
|
||||||
int c;
|
int c;
|
||||||
for(c=0;ptrs[c];++c)
|
for (c = 0; ptrs[c] != NULL; c++)
|
||||||
;
|
;
|
||||||
|
|
||||||
return c;
|
return c;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user