aboutsummaryrefslogtreecommitdiff
path: root/src/zyklonb.c
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2014-07-18 19:51:15 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2014-07-18 19:51:15 +0200
commit43d34d2473917521376f7d56126779f941205105 (patch)
tree15cf7b276d5705923c4dda172786a9a347b98fe6 /src/zyklonb.c
parent353230b18ba7c8c225c3b23a759798558fabb7de (diff)
downloadxK-43d34d2473917521376f7d56126779f941205105.tar.gz
xK-43d34d2473917521376f7d56126779f941205105.tar.xz
xK-43d34d2473917521376f7d56126779f941205105.zip
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.
Diffstat (limited to 'src/zyklonb.c')
-rw-r--r--src/zyklonb.c4
1 files changed, 1 insertions, 3 deletions
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