Source-Changes-HG archive

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

[src/trunk]: src/sys/dist/pf/net Fix a GCC warning when compiling on evbppc.



details:   https://anonhg.NetBSD.org/src/rev/f7b383d366ab
branches:  trunk
changeset: 574865:f7b383d366ab
user:      peter <peter%NetBSD.org@localhost>
date:      Tue Mar 15 18:08:59 2005 +0000

description:
Fix a GCC warning when compiling on evbppc.
>From FUKAUMI Naoki in PR #29669.

diffstat:

 sys/dist/pf/net/pf_ioctl.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 1130922cd439 -r f7b383d366ab sys/dist/pf/net/pf_ioctl.c
--- a/sys/dist/pf/net/pf_ioctl.c        Tue Mar 15 17:56:45 2005 +0000
+++ b/sys/dist/pf/net/pf_ioctl.c        Tue Mar 15 18:08:59 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pf_ioctl.c,v 1.15 2005/02/14 21:28:33 peter Exp $      */
+/*     $NetBSD: pf_ioctl.c,v 1.16 2005/03/15 18:08:59 peter Exp $      */
 /*     $OpenBSD: pf_ioctl.c,v 1.130.2.1 2004/12/19 19:01:50 brad Exp $ */
 
 /*
@@ -452,7 +452,7 @@
 pf_find_or_create_ruleset(const char *path)
 {
        static char              p[MAXPATHLEN];
-       char                    *q, *r;
+       char                    *q = NULL /* XXX gcc */, *r;
        struct pf_ruleset       *ruleset;
        struct pf_anchor        *anchor = NULL /* XXX gcc */,
                                *dup, *parent = NULL;



Home | Main Index | Thread Index | Old Index