From: Felix Fietkau Date: Wed, 28 May 2014 21:28:28 +0000 (+0200) Subject: kmodloader: force size argument for syscall to unsigned long to fix issues with musl X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1c2a9c1cbe9d18bf342edfa617eff319c1d3ce3a;p=oweals%2Fubox.git kmodloader: force size argument for syscall to unsigned long to fix issues with musl Signed-off-by: Felix Fietkau --- diff --git a/kmodloader.c b/kmodloader.c index 770484b..633570f 100644 --- a/kmodloader.c +++ b/kmodloader.c @@ -420,7 +420,7 @@ static int insert_module(char *path, const char *options) data = malloc(s.st_size); if (read(fd, data, s.st_size) == s.st_size) - ret = syscall(__NR_init_module, data, s.st_size, options); + ret = syscall(__NR_init_module, data, (unsigned long) s.st_size, options); else LOG("failed to read full module %s\n", path);