Source-Changes-HG archive

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

[src/trunk]: src/tests/net/bpf Remove unused variable



details:   https://anonhg.NetBSD.org/src/rev/94f9e05b9b45
branches:  trunk
changeset: 772112:94f9e05b9b45
user:      joerg <joerg%NetBSD.org@localhost>
date:      Sun Dec 18 22:51:00 2011 +0000

description:
Remove unused variable

diffstat:

 tests/net/bpf/t_bpf.c |  4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diffs (25 lines):

diff -r 47055d08af2b -r 94f9e05b9b45 tests/net/bpf/t_bpf.c
--- a/tests/net/bpf/t_bpf.c     Sun Dec 18 22:34:06 2011 +0000
+++ b/tests/net/bpf/t_bpf.c     Sun Dec 18 22:51:00 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: t_bpf.c,v 1.2 2011/01/03 02:53:15 christos Exp $       */
+/*     $NetBSD: t_bpf.c,v 1.3 2011/12/18 22:51:00 joerg Exp $  */
 
 /*-
  * Copyright (c) 2010 Antti Kantee.  All Rights Reserved.
@@ -76,7 +76,6 @@
        char buf[28]; /* sizeof(garbage) > etherhdrlen */
        struct ifreq ifr;
        int ifnum, bpfd;
-       u_int x;
 
        RZ(rump_init());
        RZ(rump_pub_shmif_create(NULL, &ifnum));
@@ -84,7 +83,6 @@
 
        RL(bpfd = rump_sys_open("/dev/bpf", O_RDWR));
        RL(rump_sys_ioctl(bpfd, BIOCSETIF, &ifr));
-        x = 1;
        RL(rump_sys_ioctl(bpfd, BIOCSFEEDBACK, &ifr));
 
        if (getmtdata() != 0)



Home | Main Index | Thread Index | Old Index