From: Hallvard Furuseth Date: Mon, 1 Aug 2005 03:48:53 +0000 (+0000) Subject: Handle LBER_SB_OPT_[GS]ET_FD arg as ber_socket_t like elsewhere, not as int. X-Git-Tag: OPENLDAP_AC_BP~124 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5c5a834db849b7849d5c0af62469b86bc1fb1811;p=openldap Handle LBER_SB_OPT_[GS]ET_FD arg as ber_socket_t like elsewhere, not as int. --- diff --git a/libraries/liblber/sockbuf.c b/libraries/liblber/sockbuf.c index 390f3e4416..4960c93bb4 100644 --- a/libraries/liblber/sockbuf.c +++ b/libraries/liblber/sockbuf.c @@ -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;