Source-Changes-HG archive

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

[src/trunk]: src/lib/librumpclient Remove unused variable. Approved by pooka.



details:   https://anonhg.NetBSD.org/src/rev/8e97b3e7f70b
branches:  trunk
changeset: 781240:8e97b3e7f70b
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Wed Aug 29 10:38:53 2012 +0000

description:
Remove unused variable. Approved by pooka.

diffstat:

 lib/librumpclient/rumpclient.c |  7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diffs (35 lines):

diff -r 0780e74d0a27 -r 8e97b3e7f70b lib/librumpclient/rumpclient.c
--- a/lib/librumpclient/rumpclient.c    Wed Aug 29 08:29:57 2012 +0000
+++ b/lib/librumpclient/rumpclient.c    Wed Aug 29 10:38:53 2012 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: rumpclient.c,v 1.50 2012/08/03 14:52:31 pooka Exp $   */
+/*      $NetBSD: rumpclient.c,v 1.51 2012/08/29 10:38:53 msaitoh Exp $ */
 
 /*
  * Copyright (c) 2010, 2011 Antti Kantee.  All Rights Reserved.
@@ -49,7 +49,7 @@
 #endif
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: rumpclient.c,v 1.50 2012/08/03 14:52:31 pooka Exp $");
+__RCSID("$NetBSD: rumpclient.c,v 1.51 2012/08/29 10:38:53 msaitoh Exp $");
 
 #include <sys/param.h>
 #include <sys/mman.h>
@@ -681,7 +681,6 @@
        struct respwait rw;
        struct rsp_hdr rhdr;
        char banner[MAXBANNER];
-       struct pollfd pfd;
        int s, error, flags;
        ssize_t n;
 
@@ -725,8 +724,6 @@
        if (s == -1)
                return -1;
 
-       pfd.fd = s;
-       pfd.events = POLLIN;
        while (host_connect(s, serv_sa, parsetab[ptab_idx].slen) == -1) {
                if (errno == EINTR)
                        continue;



Home | Main Index | Thread Index | Old Index