summaryrefslogtreecommitdiffstats
path: root/include/netlink-private/netlink.h
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2014-03-31 11:21:06 (GMT)
committerThomas Haller <thaller@redhat.com>2014-03-31 11:23:48 (GMT)
commit34bfce62150d07cf9894f2d9cbd0c989a203ea52 (patch)
treed4be18fc563f1aa9692a1c56deb04397ce72cc3a /include/netlink-private/netlink.h
parentbaa2cadd02086a053eb140c91d7f0681112ac370 (diff)
downloadlibnl-34bfce62150d07cf9894f2d9cbd0c989a203ea52.zip
libnl-34bfce62150d07cf9894f2d9cbd0c989a203ea52.tar.gz
libnl-34bfce62150d07cf9894f2d9cbd0c989a203ea52.tar.bz2
link: Catch missing io_free() implementations
Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: Thomas Haller <thaller@redhat.com>
Diffstat (limited to 'include/netlink-private/netlink.h')
-rw-r--r--include/netlink-private/netlink.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/netlink-private/netlink.h b/include/netlink-private/netlink.h
index ee2a8b1..e366d1e 100644
--- a/include/netlink-private/netlink.h
+++ b/include/netlink-private/netlink.h
@@ -102,6 +102,13 @@ struct trans_list {
assert(0); \
} while (0)
+#define BUG_ON(condition) \
+ do { \
+ if (condition) \
+ BUG(); \
+ } while (0)
+
+
#define APPBUG(msg) \
do { \
fprintf(stderr, "APPLICATION BUG: %s:%d:%s: %s\n", \