]> git.sur5r.net Git - openldap/commitdiff
Clean up some NT lint.
authorMark Valence <mrv@openldap.org>
Sun, 4 Jun 2000 04:35:13 +0000 (04:35 +0000)
committerMark Valence <mrv@openldap.org>
Sun, 4 Jun 2000 04:35:13 +0000 (04:35 +0000)
libraries/liblber/sockbuf.c

index b0165423dd1a45774cf536dcf99585d3c3bcd128..be8c3e8150dcc7140b21afdf78cfe2a4d2e415a6 100644 (file)
@@ -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;