mirror of
https://github.com/Waujito/youtubeUnblock.git
synced 2025-12-31 03:38:07 +03:00
Massive update of argparse system
This is required for furhter maintance of kernel module. Aims to provide common interface for both
This commit is contained in:
8
types.h
8
types.h
@@ -34,6 +34,9 @@
|
||||
#include <linux/tcp.h> // IWYU pragma: export
|
||||
#include <linux/version.h>
|
||||
|
||||
#define free kfree
|
||||
#define malloc(size) kmalloc((size), GFP_KERNEL)
|
||||
|
||||
#define ip6_hdr ipv6hdr
|
||||
|
||||
/* from <netinet/ip.h> */
|
||||
@@ -67,6 +70,11 @@
|
||||
#include <netinet/udp.h> // IWYU pragma: export
|
||||
#endif
|
||||
|
||||
#define SFREE(item) do { \
|
||||
free((item)); \
|
||||
(item) = NULL; \
|
||||
} while (0)
|
||||
|
||||
#ifndef KERNEL_SPACE
|
||||
|
||||
#define max(a,b)__extension__\
|
||||
|
||||
Reference in New Issue
Block a user