Coverity CID 1253, 1254: Don't assign the return of read or write to size_t.

It will never be negative.
This commit is contained in:
christos 2006-04-09 19:12:17 +00:00
parent f5a5211062
commit bd21f84917

View File

@ -1,4 +1,4 @@
/* $NetBSD: util.c,v 1.21 2005/03/25 23:00:55 skd Exp $ */
/* $NetBSD: util.c,v 1.22 2006/04/09 19:12:17 christos Exp $ */
/*
* Copyright (c) 1988, Larry Wall
@ -24,7 +24,7 @@
#include <sys/cdefs.h>
#ifndef lint
__RCSID("$NetBSD: util.c,v 1.21 2005/03/25 23:00:55 skd Exp $");
__RCSID("$NetBSD: util.c,v 1.22 2006/04/09 19:12:17 christos Exp $");
#endif /* not lint */
#include <sys/param.h>
@ -48,7 +48,7 @@ move_file(char *from, char *to)
{
char bakname[MAXPATHLEN];
char *s;
size_t i;
ssize_t i;
int fromfd;
if ( check_only == TRUE )