]> arthur.barton.de Git - netatalk.git/commitdiff
bugfix: make it compile on system without pread/pread, fix from Alexander Barton
authordidg <didg>
Sun, 9 Feb 2003 15:36:13 +0000 (15:36 +0000)
committerdidg <didg>
Sun, 9 Feb 2003 15:36:13 +0000 (15:36 +0000)
libatalk/adouble/ad_read.c
libatalk/adouble/ad_write.c

index ae707cb682cddc2c8cb65758808edfa733171682..644e68db1eb5b4d49213be0559ec7a3b872d614b 100644 (file)
@@ -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;
index 6de42aaff7b9dce7864b4bd7fa664bba11400a7a..f5c4eee8aa27908a0edd9f05cf8bd6d9f0211534 100644 (file)
@@ -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;
        }