git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
fef35c5
)
A couple of coding syle updates to follow the re-indent.
author
Andrew Bartlett
<abartlet@samba.org>
Sun, 13 Jan 2002 12:37:01 +0000
(12:37 +0000)
committer
Andrew Bartlett
<abartlet@samba.org>
Sun, 13 Jan 2002 12:37:01 +0000
(12:37 +0000)
(This used to be commit
7417d6f9310188d2ad3d8f41d3dcbe55862c72ac
)
source3/lib/util_sock.c
patch
|
blob
|
history
diff --git
a/source3/lib/util_sock.c
b/source3/lib/util_sock.c
index 690b626224094a645143ff59a193accb414582f9..8e7b69cac8860bc7bc5bb95ed061389e7eb0620c 100644
(file)
--- a/
source3/lib/util_sock.c
+++ b/
source3/lib/util_sock.c
@@
-221,9
+221,9
@@
static ssize_t read_socket_with_timeout(int fd,char *buf,size_t mincnt,size_t ma
while (nread < mincnt) {
#ifdef WITH_SSL
while (nread < mincnt) {
#ifdef WITH_SSL
- if
(fd == sslFd)
{
+ if
(fd == sslFd)
{
readret = SSL_read(ssl, buf + nread, maxcnt - nread);
readret = SSL_read(ssl, buf + nread, maxcnt - nread);
- }
else
{
+ }
else
{
readret = read(fd, buf + nread, maxcnt - nread);
}
#else /* WITH_SSL */
readret = read(fd, buf + nread, maxcnt - nread);
}
#else /* WITH_SSL */
@@
-263,7
+263,7
@@
static ssize_t read_socket_with_timeout(int fd,char *buf,size_t mincnt,size_t ma
selrtn = sys_select_intr(fd+1,&fds,&timeout);
/* Check if error */
selrtn = sys_select_intr(fd+1,&fds,&timeout);
/* Check if error */
- if(selrtn == -1) {
+ if
(selrtn == -1) {
/* something is wrong. Maybe the socket is dead? */
DEBUG(0,("read_socket_with_timeout: timeout read. select error = %s.\n", strerror(errno) ));
smb_read_error = READ_ERROR;
/* something is wrong. Maybe the socket is dead? */
DEBUG(0,("read_socket_with_timeout: timeout read. select error = %s.\n", strerror(errno) ));
smb_read_error = READ_ERROR;
@@
-278,7
+278,7
@@
static ssize_t read_socket_with_timeout(int fd,char *buf,size_t mincnt,size_t ma
}
#ifdef WITH_SSL
}
#ifdef WITH_SSL
- if
(fd == sslFd)
{
+ if
(fd == sslFd)
{
readret = SSL_read(ssl, buf + nread, maxcnt - nread);
}else{
readret = read(fd, buf + nread, maxcnt - nread);
readret = SSL_read(ssl, buf + nread, maxcnt - nread);
}else{
readret = read(fd, buf + nread, maxcnt - nread);
@@
-305,7
+305,7
@@
static ssize_t read_socket_with_timeout(int fd,char *buf,size_t mincnt,size_t ma
}
/* Return the number we got */
}
/* Return the number we got */
- return
((ssize_t)nread)
;
+ return
(ssize_t)nread
;
}
/****************************************************************************
}
/****************************************************************************