plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

commit bb72982b79e09bb055930c2877ac7077b341cf84
parent c54202e5776f228276ec95e6befcceda92fe2042
Author: Russ Cox <rsc@swtch.com>
Date:   Thu,  7 Oct 2010 04:23:17 -0400

libmach: fix warning about preadn

R=rsc
http://codereview.appspot.com/2388041

Diffstat:
Msrc/libmach/macho.c | 21---------------------
1 file changed, 0 insertions(+), 21 deletions(-)

diff --git a/src/libmach/macho.c b/src/libmach/macho.c @@ -6,27 +6,6 @@ /* http://www.channelu.com/NeXT/NeXTStep/3.3/nd/DevTools/14_MachO/MachO.htmld/ */ -static long -preadn(int fd, void *vdata, uint32 ulen, uint64 offset) -{ - long n; - uchar *data; - long len; - - len = ulen; - data = vdata; -/* fprint(2, "readn 0x%llux 0x%ux\n", offset, ulen); */ - while(len > 0){ - n = pread(fd, data, len, offset); - if(n <= 0) - break; - data += n; - offset += n; - len -= n; - } - return data-(uchar*)vdata; -} - Macho* machoopen(char *name)