Fix -Wsign-compare issue

This commit is contained in:
lukem 2009-04-15 00:37:05 +00:00
parent 020f7791cb
commit 2132a832ac
2 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: config.c,v 1.4 2007/01/25 20:33:41 plunky Exp $ */
/* $NetBSD: config.c,v 1.5 2009/04/15 00:37:05 lukem Exp $ */
/*-
* Copyright (c) 2006 Itronix Inc.
@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
__RCSID("$NetBSD: config.c,v 1.4 2007/01/25 20:33:41 plunky Exp $");
__RCSID("$NetBSD: config.c,v 1.5 2009/04/15 00:37:05 lukem Exp $");
#include <sys/time.h>
#include <prop/proplib.h>
@ -189,7 +189,7 @@ save_key(bdaddr_t *laddr, bdaddr_t *raddr, uint8_t *key)
}
len = strlen(xml);
if (write(fd, xml, len) != len) {
if ((size_t)write(fd, xml, len) != len) {
syslog(LOG_ERR, "Write of keyfile failed: %m");
free(xml);
close(fd);

View File

@ -1,4 +1,4 @@
/* $NetBSD: btpand.c,v 1.1 2008/08/17 13:20:57 plunky Exp $ */
/* $NetBSD: btpand.c,v 1.2 2009/04/15 00:38:07 lukem Exp $ */
/*-
* Copyright (c) 2008 Iain Hibbert
@ -27,7 +27,7 @@
#include <sys/cdefs.h>
__COPYRIGHT("@(#) Copyright (c) 2008 Iain Hibbert. All rights reserved.");
__RCSID("$NetBSD: btpand.c,v 1.1 2008/08/17 13:20:57 plunky Exp $");
__RCSID("$NetBSD: btpand.c,v 1.2 2009/04/15 00:38:07 lukem Exp $");
#include <sys/wait.h>
@ -283,7 +283,7 @@ usage(void)
"Known services:\n"
"", p, n, "", p, n, "");
for (n = 0; n < __arraycount(services); n++)
for (n = 0; n < (int)__arraycount(services); n++)
fprintf(stderr, "\t%s\t%s\n", services[n].name, services[n].desc);
exit(EXIT_FAILURE);