projects
/
project
/
netifd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove the DNS option from proto-static, it will be handled by generic code
[project/netifd.git]
/
device.c
diff --git
a/device.c
b/device.c
index
34b49d4
..
ef70685
100644
(file)
--- a/
device.c
+++ b/
device.c
@@
-3,19
+3,12
@@
#include <stdio.h>
#include <assert.h>
#include <stdio.h>
#include <assert.h>
-#include <libubox/uapi.h>
-
#include "netifd.h"
#include "system.h"
static struct avl_tree devices;
#include "netifd.h"
#include "system.h"
static struct avl_tree devices;
-static int avl_strcmp(const void *k1, const void *k2, void *ptr)
-{
- return strcmp(k1, k2);
-}
-
-static void API_CTOR dev_init(void)
+static void __init dev_init(void)
{
avl_init(&devices, avl_strcmp, false, NULL);
}
{
avl_init(&devices, avl_strcmp, false, NULL);
}