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-Tag: v18.06.0-rc1~1727 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d5bcd0240a8f42a05ef31005a9a9dea848d3f7a8;p=oweals%2Fopenwrt.git libnl-tiny: use fixed message size instead of using the page size Simplifies the code and reduces size Signed-off-by: Felix Fietkau --- 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