Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/makefs/v7fs Fix broken error check found by GCC 4.5.
details: https://anonhg.NetBSD.org/src/rev/4be6d0ff5cce
branches: trunk
changeset: 767436:4be6d0ff5cce
user: tron <tron%NetBSD.org@localhost>
date: Mon Jul 18 17:15:07 2011 +0000
description:
Fix broken error check found by GCC 4.5.
diffstat:
usr.sbin/makefs/v7fs/v7fs_populate.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 949c24335efb -r 4be6d0ff5cce usr.sbin/makefs/v7fs/v7fs_populate.c
--- a/usr.sbin/makefs/v7fs/v7fs_populate.c Mon Jul 18 17:15:06 2011 +0000
+++ b/usr.sbin/makefs/v7fs/v7fs_populate.c Mon Jul 18 17:15:07 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: v7fs_populate.c,v 1.1 2011/07/18 08:58:39 uch Exp $ */
+/* $NetBSD: v7fs_populate.c,v 1.2 2011/07/18 17:15:07 tron Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
#include <sys/cdefs.h>
#if defined(__RCSID) && !defined(__lint)
-__RCSID("$NetBSD: v7fs_populate.c,v 1.1 2011/07/18 08:58:39 uch Exp $");
+__RCSID("$NetBSD: v7fs_populate.c,v 1.2 2011/07/18 17:15:07 tron Exp $");
#endif /* !__lint */
#include <stdio.h>
@@ -117,7 +117,7 @@
{
struct copy_arg *p = ctx;
- if ((sz = read(p->fd, p->buf, sz)) != sz) {
+ if (read(p->fd, p->buf, sz) != (ssize_t)sz) {
return V7FS_ITERATOR_ERROR;
}
Home |
Main Index |
Thread Index |
Old Index