aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2017-11-09 14:39:48 +0100
committerFelix Fietkau <nbd@nbd.name>2017-11-16 12:54:15 +0100
commitd5bcd0240a8f42a05ef31005a9a9dea848d3f7a8 (patch)
tree34e39b92b6e612bc1f1726d8c6871eb6e44cbede
parent9996480b0ee80456af0b9fc3d44580393b09c84b (diff)
downloadupstream-d5bcd0240a8f42a05ef31005a9a9dea848d3f7a8.tar.gz
upstream-d5bcd0240a8f42a05ef31005a9a9dea848d3f7a8.tar.bz2
upstream-d5bcd0240a8f42a05ef31005a9a9dea848d3f7a8.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>
-rw-r--r--package/libs/libnl-tiny/src/msg.c7
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