Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/npf/npftest/libnpftest fix function argument.



details:   https://anonhg.NetBSD.org/src/rev/20dd79f8e8a7
branches:  trunk
changeset: 821231:20dd79f8e8a7
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Jan 29 04:12:52 2017 +0000

description:
fix function argument.

diffstat:

 usr.sbin/npf/npftest/libnpftest/npf_rule_test.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 6e938ba73cb4 -r 20dd79f8e8a7 usr.sbin/npf/npftest/libnpftest/npf_rule_test.c
--- a/usr.sbin/npf/npftest/libnpftest/npf_rule_test.c   Sun Jan 29 02:29:06 2017 +0000
+++ b/usr.sbin/npf/npftest/libnpftest/npf_rule_test.c   Sun Jan 29 04:12:52 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: npf_rule_test.c,v 1.13 2016/12/26 23:05:05 christos Exp $      */
+/*     $NetBSD: npf_rule_test.c,v 1.14 2017/01/29 04:12:52 christos Exp $      */
 
 /*
  * NPF ruleset test.
@@ -80,7 +80,8 @@
        npf_cache_t npc = { .npc_info = 0, .npc_ctx = npf };
        nbuf_t nbuf;
        npf_rule_t *rl;
-       int retfl, error;
+       npf_match_info_t mi;
+       int error;
 
        nbuf_init(npf, &nbuf, m, ifp);
        npc.npc_nbuf = &nbuf;
@@ -90,7 +91,7 @@
        rl = npf_ruleset_inspect(&npc, npf_config_ruleset(npf),
            di, NPF_LAYER_3);
        if (rl) {
-               error = npf_rule_conclude(rl, &retfl);
+               error = npf_rule_conclude(rl, &mi);
        } else {
                error = ENOENT;
        }



Home | Main Index | Thread Index | Old Index