Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/npf/ext_log fix error message and type of if_idx
details: https://anonhg.NetBSD.org/src/rev/3b76740e5fa2
branches: trunk
changeset: 785377:3b76740e5fa2
user: christos <christos%NetBSD.org@localhost>
date: Mon Mar 11 00:29:09 2013 +0000
description:
fix error message and type of if_idx
diffstat:
lib/npf/ext_log/npfext_log.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (34 lines):
diff -r 19d5ce7f0e77 -r 3b76740e5fa2 lib/npf/ext_log/npfext_log.c
--- a/lib/npf/ext_log/npfext_log.c Mon Mar 11 00:18:11 2013 +0000
+++ b/lib/npf/ext_log/npfext_log.c Mon Mar 11 00:29:09 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: npfext_log.c,v 1.3 2013/03/11 00:18:11 christos Exp $ */
+/* $NetBSD: npfext_log.c,v 1.4 2013/03/11 00:29:09 christos Exp $ */
/*-
* Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -30,13 +30,14 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: npfext_log.c,v 1.3 2013/03/11 00:18:11 christos Exp $");
+__RCSID("$NetBSD: npfext_log.c,v 1.4 2013/03/11 00:29:09 christos Exp $");
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <net/if.h>
+#include <stdio.h>
#include <string.h>
#include <assert.h>
#include <errno.h>
@@ -66,7 +67,7 @@
int
npfext_log_param(nl_ext_t *ext, const char *param, const char *val __unused)
{
- unsigned long if_idx;
+ unsigned int if_idx;
assert(param != NULL);
Home |
Main Index |
Thread Index |
Old Index