diff options
author | glebius <glebius@FreeBSD.org> | 2012-02-15 14:56:18 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2012-02-15 14:56:18 +0000 |
commit | 0db37683e2cf9ef7a79f99e461af2bfb261a572e (patch) | |
tree | 1ba2083de6c6c333117b8ed7bc3ba41dd17ef656 /sys/netgraph | |
parent | d6a11f61bcdf3ac3893b4ab6f01d72c590cb8644 (diff) | |
download | FreeBSD-src-0db37683e2cf9ef7a79f99e461af2bfb261a572e.zip FreeBSD-src-0db37683e2cf9ef7a79f99e461af2bfb261a572e.tar.gz |
Remove testing stuff, reducing kernel memory footprint by 1 Kb.
Anyway, when we are building a LINT kernel, all these macros
are tested via nodes.
Diffstat (limited to 'sys/netgraph')
-rw-r--r-- | sys/netgraph/ng_base.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/sys/netgraph/ng_base.c b/sys/netgraph/ng_base.c index deed226..2055520 100644 --- a/sys/netgraph/ng_base.c +++ b/sys/netgraph/ng_base.c @@ -3737,32 +3737,3 @@ ng_replace_retaddr(node_p here, item_p item, ng_ID_t retaddr) NGI_RETADDR(item) = ng_node2ID(here); } } - -#define TESTING -#ifdef TESTING -/* just test all the macros */ -void -ng_macro_test(item_p item); -void -ng_macro_test(item_p item) -{ - node_p node = NULL; - hook_p hook = NULL; - struct mbuf *m; - struct ng_mesg *msg; - ng_ID_t retaddr; - int error; - - NGI_GET_M(item, m); - NGI_GET_MSG(item, msg); - retaddr = NGI_RETADDR(item); - NG_SEND_DATA(error, hook, m, NULL); - NG_SEND_DATA_ONLY(error, hook, m); - NG_FWD_NEW_DATA(error, item, hook, m); - NG_FWD_ITEM_HOOK(error, item, hook); - NG_SEND_MSG_HOOK(error, node, msg, hook, retaddr); - NG_SEND_MSG_ID(error, node, msg, retaddr, retaddr); - NG_SEND_MSG_PATH(error, node, msg, ".:", retaddr); - NG_FWD_MSG_HOOK(error, node, item, hook, retaddr); -} -#endif /* TESTING */ |