From 55ff66657f3b5fcd4e7c0f112af315018747990b Mon Sep 17 00:00:00 2001 From: didg Date: Sun, 9 Feb 2003 15:36:13 +0000 Subject: [PATCH] bugfix: make it compile on system without pread/pread, fix from Alexander Barton --- libatalk/adouble/ad_read.c | 4 ++-- libatalk/adouble/ad_write.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libatalk/adouble/ad_read.c b/libatalk/adouble/ad_read.c index ae707cb6..644e68db 100644 --- a/libatalk/adouble/ad_read.c +++ b/libatalk/adouble/ad_read.c @@ -1,5 +1,5 @@ /* - * $Id: ad_read.c,v 1.4 2002-10-11 14:18:37 didg Exp $ + * $Id: ad_read.c,v 1.5 2003-02-09 15:36:13 didg Exp $ * * Copyright (c) 1990,1991 Regents of The University of Michigan. * All Rights Reserved. @@ -46,7 +46,7 @@ ssize_t adf_pread(struct ad_fd *ad_fd, void *buf, size_t count, off_t offset) } ad_fd->adf_off = offset; } - if (( cc = read( ad_fd.adf_fd, buf, count )) < 0 ) { + if (( cc = read( ad_fd->adf_fd, buf, count )) < 0 ) { return -1; } ad_fd->adf_off += cc; diff --git a/libatalk/adouble/ad_write.c b/libatalk/adouble/ad_write.c index 6de42aaf..f5c4eee8 100644 --- a/libatalk/adouble/ad_write.c +++ b/libatalk/adouble/ad_write.c @@ -1,5 +1,5 @@ /* - * $Id: ad_write.c,v 1.6 2003-01-16 21:18:15 didg Exp $ + * $Id: ad_write.c,v 1.7 2003-02-09 15:36:13 didg Exp $ * * Copyright (c) 1990,1995 Regents of The University of Michigan. * All Rights Reserved. See COPYRIGHT. @@ -29,7 +29,7 @@ ssize_t adf_pwrite(struct ad_fd *ad_fd, const void *buf, size_t count, off_t off ssize_t cc; #ifndef HAVE_PWRITE - if ( ad_fd->adf_off != off ) { + if ( ad_fd->adf_off != offset ) { if ( lseek( ad_fd->adf_fd, offset, SEEK_SET ) < 0 ) { return -1; } -- 2.39.2