aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2009-04-27 12:01:40 +0000
committerAndreas Schneider <mail@cynapses.org>2009-04-27 12:01:40 +0000
commitb1e62ad22b3538c8ac7b337aae2318a88ff44445 (patch)
tree3971cca4c96b43dc3d9ed64a7f85923e71f852d0
parent9d270f99a76e3b498468929cea4d27aebf6beeed (diff)
downloadlibssh-b1e62ad22b3538c8ac7b337aae2318a88ff44445.tar.gz
libssh-b1e62ad22b3538c8ac7b337aae2318a88ff44445.tar.xz
libssh-b1e62ad22b3538c8ac7b337aae2318a88ff44445.zip
Reformat sftp_handle_remove.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@630 7dcaeef0-15fb-0310-b436-a5af3365683c
-rw-r--r--libssh/sftpserver.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/libssh/sftpserver.c b/libssh/sftpserver.c
index 795c6756..a6b9cbf0 100644
--- a/libssh/sftpserver.c
+++ b/libssh/sftpserver.c
@@ -473,12 +473,14 @@ void *sftp_handle(SFTP_SESSION *sftp, STRING *handle){
return sftp->handles[val];
}
-void sftp_handle_remove(SFTP_SESSION *sftp, void *handle){
- int i;
- for(i=0;i<SFTP_HANDLES;++i){
- if(sftp->handles[i]==handle){
- sftp->handles[i]=NULL;
- break;
- }
+void sftp_handle_remove(SFTP_SESSION *sftp, void *handle) {
+ int i;
+
+ for (i = 0; i < SFTP_HANDLES; i++) {
+ if (sftp->handles[i] == handle) {
+ sftp->handles[i] = NULL;
+ break;
}
+ }
}
+