Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/dist/pf/sbin/pfctl appease gcc -Wuninitialized
details: https://anonhg.NetBSD.org/src/rev/be86c97bc25b
branches: trunk
changeset: 581523:be86c97bc25b
user: lukem <lukem%NetBSD.org@localhost>
date: Thu Jun 02 09:58:55 2005 +0000
description:
appease gcc -Wuninitialized
diffstat:
dist/pf/sbin/pfctl/pfctl_optimize.c | 6 +++---
dist/pf/sbin/pfctl/pfctl_table.c | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
diffs (45 lines):
diff -r 02de6dfe1b9c -r be86c97bc25b dist/pf/sbin/pfctl/pfctl_optimize.c
--- a/dist/pf/sbin/pfctl/pfctl_optimize.c Thu Jun 02 09:47:37 2005 +0000
+++ b/dist/pf/sbin/pfctl/pfctl_optimize.c Thu Jun 02 09:58:55 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pfctl_optimize.c,v 1.3 2004/12/19 10:27:46 yamt Exp $ */
+/* $NetBSD: pfctl_optimize.c,v 1.4 2005/06/02 09:58:55 lukem Exp $ */
/* $OpenBSD: pfctl_optimize.c,v 1.2.2.1 2004/12/17 02:51:35 brad Exp $ */
/*
@@ -246,7 +246,7 @@
struct superblocks superblocks;
struct superblock *block;
struct pf_opt_rule *por;
- int nr;
+ int nr = 0;
DEBUG("optimizing ruleset");
memset(&table_buffer, 0, sizeof(table_buffer));
@@ -596,7 +596,7 @@
struct superblock *newblock;
struct pf_skip_step *skiplist;
struct pf_opt_rule *por;
- int i, largest, largest_list, rule_count = 0;
+ int i, largest, largest_list = -1, rule_count = 0;
TAILQ_HEAD( , pf_opt_rule) head;
/*
diff -r 02de6dfe1b9c -r be86c97bc25b dist/pf/sbin/pfctl/pfctl_table.c
--- a/dist/pf/sbin/pfctl/pfctl_table.c Thu Jun 02 09:47:37 2005 +0000
+++ b/dist/pf/sbin/pfctl/pfctl_table.c Thu Jun 02 09:58:55 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pfctl_table.c,v 1.4 2004/11/14 11:26:48 yamt Exp $ */
+/* $NetBSD: pfctl_table.c,v 1.5 2005/06/02 09:58:55 lukem Exp $ */
/* $OpenBSD: pfctl_table.c,v 1.61 2004/06/12 22:22:44 cedric Exp $ */
/*
@@ -481,7 +481,7 @@
{
struct pfr_buffer b;
struct pfr_table *t;
- const char *name = NULL, *lastcoll;
+ const char *name = NULL, *lastcoll = NULL;
int coll = 0;
bzero(&b, sizeof(b));
Home |
Main Index |
Thread Index |
Old Index