diff options
author | Felix Fietkau <nbd@nbd.name> | 2017-11-09 14:39:48 +0100 |
---|---|---|
committer | rofl0r <rofl0r@users.noreply.github.com> | 2022-09-16 01:26:09 +0000 |
commit | 31e166fa8130bef975f85d2c83f69e0619f3289a (patch) | |
tree | 752be828250512d7036019dcb6ddc3e995e83c0c /msg.c | |
parent | c5653a03418879613ee8dbcf123da2b118bcd63f (diff) | |
download | libnl-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.c | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -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 |