Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys Remove unused variable
details: https://anonhg.NetBSD.org/src/rev/d244a7e1e4bc
branches: trunk
changeset: 790022:d244a7e1e4bc
user: martin <martin%NetBSD.org@localhost>
date: Sun Sep 15 09:38:28 2013 +0000
description:
Remove unused variable
diffstat:
sys/dev/rasops/rasops32.c | 7 +++----
sys/external/bsd/ipf/netinet/radix_ipf.c | 4 +---
2 files changed, 4 insertions(+), 7 deletions(-)
diffs (60 lines):
diff -r bb6739dc0463 -r d244a7e1e4bc sys/dev/rasops/rasops32.c
--- a/sys/dev/rasops/rasops32.c Sun Sep 15 09:37:14 2013 +0000
+++ b/sys/dev/rasops/rasops32.c Sun Sep 15 09:38:28 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rasops32.c,v 1.28 2013/07/31 19:58:23 macallan Exp $ */
+/* $NetBSD: rasops32.c,v 1.29 2013/09/15 09:39:47 martin Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rasops32.c,v 1.28 2013/07/31 19:58:23 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rasops32.c,v 1.29 2013/09/15 09:39:47 martin Exp $");
#include "opt_rasops.h"
@@ -162,7 +162,7 @@
static void
rasops32_putchar_aa(void *cookie, int row, int col, u_int uc, long attr)
{
- int width, height, cnt, fs, clr[2];
+ int width, height, cnt, clr[2];
struct rasops_info *ri = (struct rasops_info *)cookie;
struct wsdisplay_font *font = PICK_FONT(ri, uc);
int32_t *dp, *rp;
@@ -204,7 +204,6 @@
}
} else {
fr = WSFONT_GLYPH(uc, font);
- fs = font->stride;
r0 = (clr[0] >> 16) & 0xff;
r1 = (clr[1] >> 16) & 0xff;
diff -r bb6739dc0463 -r d244a7e1e4bc sys/external/bsd/ipf/netinet/radix_ipf.c
--- a/sys/external/bsd/ipf/netinet/radix_ipf.c Sun Sep 15 09:37:14 2013 +0000
+++ b/sys/external/bsd/ipf/netinet/radix_ipf.c Sun Sep 15 09:38:28 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: radix_ipf.c,v 1.3 2012/07/22 14:27:52 darrenr Exp $ */
+/* $NetBSD: radix_ipf.c,v 1.4 2013/09/15 09:38:28 martin Exp $ */
/*
* Copyright (C) 2012 by Darren Reed.
@@ -99,7 +99,6 @@
buildnodes(addrfamily_t *addr, addrfamily_t *mask, ipf_rdx_node_t nodes[2])
{
u_32_t maskbits;
- u_32_t lastbits;
u_32_t lastmask;
u_32_t *last;
int masklen;
@@ -113,7 +112,6 @@
masklen = last - (u_32_t *)mask;
lastmask = *last;
}
- lastbits = maskbits & 0x1f;
bzero(&nodes[0], sizeof(ipf_rdx_node_t) * 2);
nodes[0].maskbitcount = maskbits;
Home |
Main Index |
Thread Index |
Old Index