diff options
author | Felix Fietkau <nbd@nbd.name> | 2017-11-09 14:39:48 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2017-12-13 16:52:12 +0100 |
commit | 50147d41b971f20043f1641fa02eb06cf751ff2c (patch) | |
tree | 8fff6eaf3774975fd6a33be62f2ae8afddf785f0 /package/libs | |
parent | 06258144266a5adb44d2ef072c2a7c051584a24d (diff) | |
download | upstream-50147d41b971f20043f1641fa02eb06cf751ff2c.tar.gz upstream-50147d41b971f20043f1641fa02eb06cf751ff2c.tar.bz2 upstream-50147d41b971f20043f1641fa02eb06cf751ff2c.zip |
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>
(cherry picked from commit d5bcd0240a8f42a05ef31005a9a9dea848d3f7a8)
Diffstat (limited to 'package/libs')
-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 e84c281fc9..b502047c4c 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 |