summaryrefslogtreecommitdiff
path: root/msg.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2017-11-09 14:39:48 +0100
committerrofl0r <rofl0r@users.noreply.github.com>2022-09-16 01:26:09 +0000
commit31e166fa8130bef975f85d2c83f69e0619f3289a (patch)
tree752be828250512d7036019dcb6ddc3e995e83c0c /msg.c
parentc5653a03418879613ee8dbcf123da2b118bcd63f (diff)
downloadlibnl-tiny-31e166fa8130bef975f85d2c83f69e0619f3289a.tar.gz
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>
Diffstat (limited to 'msg.c')
-rw-r--r--msg.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/msg.c b/msg.c
index e84c281..b502047 100644
--- a/msg.c
+++ b/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