Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/librumphijack the usual fun for WARNS=4



details:   https://anonhg.NetBSD.org/src/rev/80e4acb39fca
branches:  trunk
changeset: 761362:80e4acb39fca
user:      pooka <pooka%NetBSD.org@localhost>
date:      Tue Jan 25 12:53:45 2011 +0000

description:
the usual fun for WARNS=4

signed,
  unsigned

diffstat:

 lib/librumphijack/hijack.c |  11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diffs (46 lines):

diff -r be1439337cf8 -r 80e4acb39fca lib/librumphijack/hijack.c
--- a/lib/librumphijack/hijack.c        Tue Jan 25 12:43:30 2011 +0000
+++ b/lib/librumphijack/hijack.c        Tue Jan 25 12:53:45 2011 +0000
@@ -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);



Home | Main Index | Thread Index | Old Index