From 98dfba54d8de0dd743774021ff1f129d3717d6c4 Mon Sep 17 00:00:00 2001 From: didg Date: Fri, 16 Oct 2009 00:40:48 +0000 Subject: [PATCH] copy_file use the right type ssize_t for ccor cc < 0 is always false --- libatalk/vfs/unix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) { -- 2.39.2