From: Mark Valence Date: Sun, 4 Jun 2000 04:35:13 +0000 (+0000) Subject: Clean up some NT lint. X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~2769 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=bb1d03a5e86b0fd6942d4562511fdb18dffd9c6e;p=openldap Clean up some NT lint. --- diff --git a/libraries/liblber/sockbuf.c b/libraries/liblber/sockbuf.c index b0165423dd..be8c3e8150 100644 --- a/libraries/liblber/sockbuf.c +++ b/libraries/liblber/sockbuf.c @@ -273,7 +273,7 @@ ber_pvt_sb_do_write( Sockbuf_IO_Desc *sbiod, Sockbuf_Buf *buf_out ) buf_out->buf_ptr += ret; if (buf_out->buf_ptr == buf_out->buf_end) buf_out->buf_end = buf_out->buf_ptr = 0; - if ( ret < to_go ) + if ( (ber_len_t)ret < to_go ) /* not enough data, so pretend no data was sent. */ return -1; return ret;