From: Felix Fietkau Date: Thu, 9 Nov 2017 13:39:48 +0000 (+0100) Subject: libnl-tiny: use fixed message size instead of using the page size X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=50147d41b971f20043f1641fa02eb06cf751ff2c;p=openwrt%2Fstaging%2Fhauke.git libnl-tiny: use fixed message size instead of using the page size Simplifies the code and reduces size Signed-off-by: Felix Fietkau (cherry picked from commit d5bcd0240a8f42a05ef31005a9a9dea848d3f7a8) --- 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 #include -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