summaryrefslogtreecommitdiff
path: root/pjlib/src/pj/ioqueue_common_abs.c
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2005-11-07 21:58:51 +0000
committerBenny Prijono <bennylp@teluu.com>2005-11-07 21:58:51 +0000
commit5b11ba6ce80a7fed9cab4320fcaf02d70fc9b712 (patch)
tree2bd4fab06b978c4eb2b03d9f1e5452471904dce9 /pjlib/src/pj/ioqueue_common_abs.c
parent631d9d16cd10c61c06e36686257aad367006b5da (diff)
Modif in configure
git-svn-id: http://svn.pjsip.org/repos/pjproject/main@28 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib/src/pj/ioqueue_common_abs.c')
-rw-r--r--pjlib/src/pj/ioqueue_common_abs.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/pjlib/src/pj/ioqueue_common_abs.c b/pjlib/src/pj/ioqueue_common_abs.c
index d5f8d657..35f86a06 100644
--- a/pjlib/src/pj/ioqueue_common_abs.c
+++ b/pjlib/src/pj/ioqueue_common_abs.c
@@ -168,20 +168,22 @@ void ioqueue_dispatch_write_event(pj_ioqueue_t *ioqueue, pj_ioqueue_key_t *h)
* level SOL_SOCKET to determine whether connect() completed
* successfully (if SO_ERROR is zero).
*/
- int value;
- socklen_t vallen = sizeof(value);
- int gs_rc = getsockopt(h->fd, SOL_SOCKET, SO_ERROR,
+ {
+ int value;
+ socklen_t vallen = sizeof(value);
+ int gs_rc = getsockopt(h->fd, SOL_SOCKET, SO_ERROR,
&value, &vallen);
- if (gs_rc != 0) {
+ if (gs_rc != 0) {
/* Argh!! What to do now???
* Just indicate that the socket is connected. The
* application will get error as soon as it tries to use
* the socket to send/receive.
*/
bytes_transfered = 0;
- } else {
+ } else {
bytes_transfered = value;
- }
+ }
+ }
#elif defined(PJ_WIN32) && PJ_WIN32!=0
bytes_transfered = 0; /* success */
#else