From 43d34d2473917521376f7d56126779f941205105 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?P=C5=99emysl=20Janouch?=
Date: Fri, 18 Jul 2014 19:51:15 +0200
Subject: Add a LIST_HEADER macro
To save us from specifying the `next' and `prev' pointers all the time.
It's not perfect, just a tiny bit better.
---
src/zyklonb.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
(limited to 'src/zyklonb.c')
diff --git a/src/zyklonb.c b/src/zyklonb.c
index b2584de..e5e8749 100644
--- a/src/zyklonb.c
+++ b/src/zyklonb.c
@@ -52,9 +52,7 @@ static struct config_item g_config_table[] =
struct plugin_data
{
- struct plugin_data *next; ///< The next link in a chain
- struct plugin_data *prev; ///< The previous link in a chain
-
+ LIST_HEADER (plugin_data)
struct bot_context *ctx; ///< Parent context
pid_t pid; ///< PID of the plugin process
--
cgit v1.2.3