From: didg Date: Fri, 16 Oct 2009 00:40:48 +0000 (+0000) Subject: copy_file use the right type ssize_t for ccor cc < 0 is always false X-Git-Tag: before-ipv6~93 X-Git-Url: https://arthur.barton.de/gitweb/?a=commitdiff_plain;h=98dfba54d8de0dd743774021ff1f129d3717d6c4;hp=18e92a2d0337ad11c4e4869207a4ab98da4986b0;p=netatalk.git copy_file use the right type ssize_t for ccor cc < 0 is always false --- diff --git a/libatalk/vfs/unix.c b/libatalk/vfs/unix.c index eaec6aab..eaf25686 100644 --- a/libatalk/vfs/unix.c +++ b/libatalk/vfs/unix.c @@ -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) {