Module Name: src
Committed By: christos
Date: Sun Oct 20 17:14:05 UTC 2013
Modified Files:
src/sys/external/bsd/ipf/netinet: ip_auth.c
Log Message:
ifdef kernel used only variable
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/external/bsd/ipf/netinet/ip_auth.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/external/bsd/ipf/netinet/ip_auth.c
diff -u src/sys/external/bsd/ipf/netinet/ip_auth.c:1.3 src/sys/external/bsd/ipf/netinet/ip_auth.c:1.4
--- src/sys/external/bsd/ipf/netinet/ip_auth.c:1.3 Sun Jul 22 10:27:51 2012
+++ src/sys/external/bsd/ipf/netinet/ip_auth.c Sun Oct 20 13:14:05 2013
@@ -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 @@ extern struct ifqueue ipintrq; /* ip
#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 @@ ipf_auth_reply(ipf_main_softc_t *softc,
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 @@ ipf_auth_reply(ipf_main_softc_t *softc,
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));