From 5c5a834db849b7849d5c0af62469b86bc1fb1811 Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Mon, 1 Aug 2005 03:48:53 +0000 Subject: [PATCH] Handle LBER_SB_OPT_[GS]ET_FD arg as ber_socket_t like elsewhere, not as int. --- libraries/liblber/sockbuf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.5