diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-04-13 23:19:22 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-04-13 23:19:22 +0200 |
commit | 4ea88db58ca2c7d488996003b4a51cc3f3cf7808 (patch) | |
tree | 998563e05839feb34447bfc96134d088728e756b /device.c | |
parent | 8ac814e3d02fd3c8be2798814c085dc2c65c5c49 (diff) |
add a __init define for constructors
Diffstat (limited to 'device.c')
-rw-r--r-- | device.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -3,14 +3,12 @@ #include <stdio.h> #include <assert.h> -#include <libubox/uapi.h> - #include "netifd.h" #include "system.h" static struct avl_tree devices; -static void API_CTOR dev_init(void) +static void __init dev_init(void) { avl_init(&devices, avl_strcmp, false, NULL); } |