Module Name: src
Committed By: pooka
Date: Tue Jan 25 12:53:45 UTC 2011
Modified Files:
src/lib/librumphijack: hijack.c
Log Message:
the usual fun for WARNS=4
signed,
unsigned
To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/lib/librumphijack/hijack.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/librumphijack/hijack.c
diff -u src/lib/librumphijack/hijack.c:1.18 src/lib/librumphijack/hijack.c:1.19
--- src/lib/librumphijack/hijack.c:1.18 Tue Jan 25 12:21:36 2011
+++ src/lib/librumphijack/hijack.c Tue Jan 25 12:53:45 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: hijack.c,v 1.18 2011/01/25 12:21:36 pooka Exp $ */
+/* $NetBSD: hijack.c,v 1.19 2011/01/25 12:53:45 pooka Exp $ */
/*-
* Copyright (c) 2011 Antti Kantee. All Rights Reserved.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: hijack.c,v 1.18 2011/01/25 12:21:36 pooka Exp $");
+__RCSID("$NetBSD: hijack.c,v 1.19 2011/01/25 12:53:45 pooka Exp $");
#include <sys/param.h>
#include <sys/types.h>
@@ -187,7 +187,7 @@
int (*rumpcinit)(void);
void **rumpcdlsym;
void *hand;
- int i, j;
+ unsigned i, j;
hand = dlopen("librumpclient.so", RTLD_LAZY|RTLD_GLOBAL);
if (!hand)
@@ -448,7 +448,8 @@
{
struct pollfd *pfds;
struct timespec ts, *tsp = NULL;
- nfds_t i, j, realnfds;
+ nfds_t realnfds;
+ int i, j;
int rv, incr;
DPRINTF(("select\n"));
@@ -528,7 +529,7 @@
}
/* and then plug in the results */
- for (i = 0; i < realnfds; i++) {
+ for (i = 0; i < (int)realnfds; i++) {
if (readfds) {
if (pfds[i].revents & POLLIN) {
FD_SET(pfds[i].fd, readfds);