summaryrefslogtreecommitdiff
path: root/usr.bin/patch
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2006-04-09 19:12:17 +0000
committerchristos <christos@NetBSD.org>2006-04-09 19:12:17 +0000
commitbd21f84917fa454d1060c8d2f7b29dfc03d49826 (patch)
tree7584d5a15b7adacff11117197d86d9e788d62b9b /usr.bin/patch
parentf5a5211062510468df030f29cc0c6e8e4b6230f5 (diff)
Coverity CID 1253, 1254: Don't assign the return of read or write to size_t.
It will never be negative.
Diffstat (limited to 'usr.bin/patch')
-rw-r--r--usr.bin/patch/util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/patch/util.c b/usr.bin/patch/util.c
index 0437bb4e673..3a44116e5d0 100644
--- a/usr.bin/patch/util.c
+++ b/usr.bin/patch/util.c
@@ -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 )