]> arthur.barton.de Git - netatalk.git/commitdiff
copy_file use the right type ssize_t for ccor cc < 0 is always false
authordidg <didg>
Fri, 16 Oct 2009 00:40:48 +0000 (00:40 +0000)
committerdidg <didg>
Fri, 16 Oct 2009 00:40:48 +0000 (00:40 +0000)
libatalk/vfs/unix.c

index eaec6aab576d184eb0566d50dc4c3ae501338b83..eaf2568698014baf7e38fb52987fab096a9ed54a 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: unix.c,v 1.2 2009-10-15 12:06:08 franklahm Exp $
+ * $Id: unix.c,v 1.3 2009-10-16 00:40:48 didg Exp $
  *
  * Copyright (c) 1990,1993 Regents of The University of Michigan.
  * All Rights Reserved.  See COPYRIGHT.
@@ -160,7 +160,7 @@ int copy_file(const char *src, const char *dst, mode_t mode)
     int    ret = 0;
     int    sfd = -1;
     int    dfd = -1;
-    size_t cc;
+    ssize_t cc;
     char   filebuf[8192];
 
     if ((sfd = open(src, O_RDONLY)) < 0) {