diff options
Diffstat (limited to 'util-linux/uevent.c')
-rw-r--r-- | util-linux/uevent.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/util-linux/uevent.c b/util-linux/uevent.c index 58668fa..b98fe61 100644 --- a/util-linux/uevent.c +++ b/util-linux/uevent.c @@ -31,6 +31,7 @@ #define BUFFER_SIZE 16*1024 #define env ((char **)bb_common_bufsiz1) +#define INIT_G() do { setup_common_bufsiz(); } while (0) enum { MAX_ENV = COMMON_BUFSIZE / sizeof(env[0]) - 1, }; @@ -46,6 +47,8 @@ int uevent_main(int argc UNUSED_PARAM, char **argv) struct sockaddr_nl sa; int fd; + INIT_G(); + argv++; // Subscribe for UEVENT kernel messages |