CVSROOT:        /cvs
Module name:    src
Changes by:     j...@cvs.openbsd.org    2018/07/09 03:21:26

Modified files:
        usr.bin/ldap   : ber.c 
        usr.sbin/ldapd : ber.c 
        usr.sbin/snmpd : ber.c 
        usr.sbin/ypldap: ber.c 

Log message:
Simplify ber_read()

After the removal of fd-based read/writes I could have trimmed the code
further.

- no socket-based reads so ber_read() doesn't need to loop until it gets
the desired amount of data
- return either the requested amount of data or -1/ECANCELED, the caller
shouldn't have to handle partial reads itself
- inline ber_readbuf() into ber_read()

ok rob@ claudio@ tb@

Reply via email to