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=8ee5f3a4023f822d1c916bb2b5e845d3597ac674;p=project%2Flibnl-tiny.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/src/msg.c b/src/msg.c index e84c281..b502047 100644 --- a/src/msg.c +++ b/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