diff options
author | Felix Fietkau <nbd@nbd.name> | 2017-11-09 14:39:48 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2017-11-16 12:54:15 +0100 |
commit | d5bcd0240a8f42a05ef31005a9a9dea848d3f7a8 (patch) | |
tree | 34e39b92b6e612bc1f1726d8c6871eb6e44cbede | |
parent | 9996480b0ee80456af0b9fc3d44580393b09c84b (diff) | |
download | mtk-20170518-d5bcd0240a8f42a05ef31005a9a9dea848d3f7a8.zip mtk-20170518-d5bcd0240a8f42a05ef31005a9a9dea848d3f7a8.tar.gz mtk-20170518-d5bcd0240a8f42a05ef31005a9a9dea848d3f7a8.tar.bz2 |
libnl-tiny: use fixed message size instead of using the page size
Simplifies the code and reduces size
Signed-off-by: Felix Fietkau <nbd@nbd.name>
-rw-r--r-- | package/libs/libnl-tiny/src/msg.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/package/libs/libnl-tiny/src/msg.c b/package/libs/libnl-tiny/src/msg.c index e84c281..b502047 100644 --- a/package/libs/libnl-tiny/src/msg.c +++ b/package/libs/libnl-tiny/src/msg.c @@ -166,12 +166,7 @@ #include <netlink/msg.h> #include <linux/socket.h> -static size_t default_msg_size; - -static void __init init_msg_size(void) -{ - default_msg_size = getpagesize(); -} +static size_t default_msg_size = 4096; /** * @name Attribute Access |