]> git.sur5r.net Git - openldap/commitdiff
Handle LBER_SB_OPT_[GS]ET_FD arg as ber_socket_t like elsewhere, not as int.
authorHallvard Furuseth <hallvard@openldap.org>
Mon, 1 Aug 2005 03:48:53 +0000 (03:48 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Mon, 1 Aug 2005 03:48:53 +0000 (03:48 +0000)
libraries/liblber/sockbuf.c

index 390f3e4416e7edca7b91462c487d0316ccd3e01e..4960c93bb4176d790c5ce388cccadf39ec4c65bf 100644 (file)
@@ -104,13 +104,13 @@ ber_sockbuf_ctrl( Sockbuf *sb, int opt, void *arg )
 
                case LBER_SB_OPT_GET_FD:
                        if ( arg != NULL ) {
-                               *((int *)arg) = sb->sb_fd;
+                               *((ber_socket_t *)arg) = sb->sb_fd;
                        }
                        ret = ( sb->sb_fd == AC_SOCKET_INVALID ? -1 : 1);
                        break;
 
                case LBER_SB_OPT_SET_FD:
-                       sb->sb_fd = *((int *)arg);
+                       sb->sb_fd = *((ber_socket_t *)arg);
                        ret = 1;
                        break;