Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net/npf Fix gcc warnings.
details: https://anonhg.NetBSD.org/src/rev/749f1b2ded6c
branches: trunk
changeset: 330742:749f1b2ded6c
user: rmind <rmind%NetBSD.org@localhost>
date: Sat Jul 19 20:59:01 2014 +0000
description:
Fix gcc warnings.
diffstat:
sys/net/npf/npf_conn.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (35 lines):
diff -r 063ec8497add -r 749f1b2ded6c sys/net/npf/npf_conn.c
--- a/sys/net/npf/npf_conn.c Sat Jul 19 20:58:12 2014 +0000
+++ b/sys/net/npf/npf_conn.c Sat Jul 19 20:59:01 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: npf_conn.c,v 1.1 2014/07/19 18:24:16 rmind Exp $ */
+/* $NetBSD: npf_conn.c,v 1.2 2014/07/19 20:59:01 rmind Exp $ */
/*-
* Copyright (c) 2014 Mindaugas Rasiukevicius <rmind at netbsd org>
@@ -100,7 +100,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: npf_conn.c,v 1.1 2014/07/19 18:24:16 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: npf_conn.c,v 1.2 2014/07/19 20:59:01 rmind Exp $");
#include <sys/param.h>
#include <sys/types.h>
@@ -328,6 +328,7 @@
memcpy(&key->ck_key[2 + nwords], npc->npc_ips[idst], alen);
keylen = (2 + (nwords * 2)) * sizeof(uint32_t);
}
+ (void)keylen;
return true;
}
@@ -566,7 +567,7 @@
[NPF_NATIN] = NPF_SRC,
};
npf_connkey_t key, *bk;
- npf_conn_t *ret;
+ npf_conn_t *ret __diagused;
npf_addr_t *taddr;
in_port_t tport;
u_int tidx;
Home |
Main Index |
Thread Index |
Old Index