Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/ipf/netinet ifdef kernel used only variable
details: https://anonhg.NetBSD.org/src/rev/6f33675d552a
branches: trunk
changeset: 790767:6f33675d552a
user: christos <christos%NetBSD.org@localhost>
date: Sun Oct 20 17:14:05 2013 +0000
description:
ifdef kernel used only variable
diffstat:
sys/external/bsd/ipf/netinet/ip_auth.c | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diffs (41 lines):
diff -r 2d5ef14d3775 -r 6f33675d552a sys/external/bsd/ipf/netinet/ip_auth.c
--- a/sys/external/bsd/ipf/netinet/ip_auth.c Sun Oct 20 17:13:18 2013 +0000
+++ b/sys/external/bsd/ipf/netinet/ip_auth.c Sun Oct 20 17:14:05 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ip_auth.c,v 1.3 2012/07/22 14:27:51 darrenr Exp $ */
+/* $NetBSD: ip_auth.c,v 1.4 2013/10/20 17:14:05 christos Exp $ */
/*
* Copyright (C) 2012 by Darren Reed.
@@ -129,7 +129,7 @@
#if !defined(lint)
#if defined(__NetBSD__)
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ip_auth.c,v 1.3 2012/07/22 14:27:51 darrenr Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip_auth.c,v 1.4 2013/10/20 17:14:05 christos Exp $");
#else
static const char rcsid[] = "@(#)Id: ip_auth.c,v 1.1.1.2 2012/07/22 13:45:08 darrenr Exp";
#endif
@@ -1147,7 +1147,9 @@
frauth_t auth, *au = &auth, *fra;
fr_info_t fin;
int error, i;
+#ifdef _KERNEL
mb_t *m;
+#endif
SPL_INT(s);
error = ipf_inobj(softc, data, NULL, &auth, IPFOBJ_FRAUTH);
@@ -1179,9 +1181,11 @@
return ESRCH;
}
- m = softa->ipf_auth_pkts[i];
fra->fra_index = -2;
fra->fra_pass = au->fra_pass;
+#ifdef _KERNEL
+ m = softa->ipf_auth_pkts[i];
+#endif
softa->ipf_auth_pkts[i] = NULL;
softa->ipf_auth_replies++;
bcopy(&fra->fra_info, &fin, sizeof(fin));
Home |
Main Index |
Thread Index |
Old Index