Handle LBER_SB_OPT_[GS]ET_FD arg as ber_socket_t like elsewhere, not as int.

This commit is contained in:
Hallvard Furuseth 2005-08-01 03:48:53 +00:00
parent a286d07109
commit 5c5a834db8

View 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;