Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net/npf use sizeof(req) to find if it was empty or not (...
details: https://anonhg.NetBSD.org/src/rev/6be0a90f5443
branches: trunk
changeset: 785392:6be0a90f5443
user: christos <christos%NetBSD.org@localhost>
date: Mon Mar 11 17:20:02 2013 +0000
description:
use sizeof(req) to find if it was empty or not (from uwe)
diffstat:
sys/net/npf/npf.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 03c49721e115 -r 6be0a90f5443 sys/net/npf/npf.h
--- a/sys/net/npf/npf.h Mon Mar 11 17:03:55 2013 +0000
+++ b/sys/net/npf/npf.h Mon Mar 11 17:20:02 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: npf.h,v 1.29 2013/03/11 17:03:55 christos Exp $ */
+/* $NetBSD: npf.h,v 1.30 2013/03/11 17:20:02 christos Exp $ */
/*-
* Copyright (c) 2009-2013 The NetBSD Foundation, Inc.
@@ -64,7 +64,7 @@
#define NPF_DECISION_PASS 1
#define NPF_EXT_MODULE(name, req) \
- MODULE(MODULE_CLASS_MISC, name, "npf" req)
+ MODULE(MODULE_CLASS_MISC, name, (sizeof(req) - 1) ? ("npf," req) : "npf")
/*
* Packet information cache.
Home |
Main Index |
Thread Index |
Old Index