aboutsummaryrefslogtreecommitdiffstats
path: root/package/libs/libnl-tiny
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2017-11-09 14:39:48 +0100
committerJo-Philipp Wich <jo@mein.io>2017-12-13 16:52:12 +0100
commit50147d41b971f20043f1641fa02eb06cf751ff2c (patch)
tree8fff6eaf3774975fd6a33be62f2ae8afddf785f0 /package/libs/libnl-tiny
parent06258144266a5adb44d2ef072c2a7c051584a24d (diff)
downloadupstream-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/libnl-tiny')
-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