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:
parent
f5a5211062
commit
bd21f84917
@ -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
|
* Copyright (c) 1988, Larry Wall
|
||||||
@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
#ifndef lint
|
#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 */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
@ -48,7 +48,7 @@ move_file(char *from, char *to)
|
|||||||
{
|
{
|
||||||
char bakname[MAXPATHLEN];
|
char bakname[MAXPATHLEN];
|
||||||
char *s;
|
char *s;
|
||||||
size_t i;
|
ssize_t i;
|
||||||
int fromfd;
|
int fromfd;
|
||||||
|
|
||||||
if ( check_only == TRUE )
|
if ( check_only == TRUE )
|
||||||
|
Loading…
Reference in New Issue
Block a user