fix -Wsign-compare issue

This commit is contained in:
lukem 2009-01-19 09:56:06 +00:00
parent d1a11f39cd
commit 6bb2880ee0
2 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: refuse.c,v 1.89 2008/08/01 15:54:09 dillo Exp $ */
/* $NetBSD: refuse.c,v 1.90 2009/01/19 10:01:38 lukem Exp $ */
/*
* Copyright © 2007 Alistair Crooks. All rights reserved.
@ -31,7 +31,7 @@
#include <sys/cdefs.h>
#if !defined(lint)
__RCSID("$NetBSD: refuse.c,v 1.89 2008/08/01 15:54:09 dillo Exp $");
__RCSID("$NetBSD: refuse.c,v 1.90 2009/01/19 10:01:38 lukem Exp $");
#endif /* !lint */
#include <sys/types.h>
@ -1084,7 +1084,7 @@ puffs_fuse_node_write(struct puffs_usermount *pu, void *opc, uint8_t *buf,
&rn->file_info);
if (ret > 0) {
if (offset + ret > pn->pn_va.va_size)
if ((uint64_t)(offset + ret) > pn->pn_va.va_size)
pn->pn_va.va_size = offset + ret;
*resid -= ret;
ret = 0;

View File

@ -1,4 +1,4 @@
/* $NetBSD: refuse_opt.c,v 1.13 2007/11/05 13:41:52 pooka Exp $ */
/* $NetBSD: refuse_opt.c,v 1.14 2009/01/19 09:56:06 lukem Exp $ */
/*-
* Copyright (c) 2007 Juan Romero Pardines.
@ -115,7 +115,7 @@ struct fuse_args *
fuse_opt_deep_copy_args(int argc, char **argv)
{
struct fuse_args *ap;
size_t i;
int i;
if ((ap = malloc(sizeof(*ap))) == NULL)
err(1, "_fuse_deep_copy_args");