mirror of
				git://git.openwrt.org/openwrt/openwrt.git
				synced 2025-11-04 06:54:27 -05:00 
			
		
		
		
	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>
This commit is contained in:
		
							parent
							
								
									9996480b0e
								
							
						
					
					
						commit
						d5bcd0240a
					
				@ -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
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user