summaryrefslogtreecommitdiff
path: root/kmodloader.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-05-28 23:28:28 +0200
committerFelix Fietkau <nbd@openwrt.org>2014-05-28 23:28:28 +0200
commit1c2a9c1cbe9d18bf342edfa617eff319c1d3ce3a (patch)
tree23b8539f0555f1afacadc89166e8fec43c56a4ab /kmodloader.c
parentb71fd28a93051be9d2cdd72f1a0f526222f26964 (diff)
downloadubox-1c2a9c1cbe9d18bf342edfa617eff319c1d3ce3a.tar.gz
kmodloader: force size argument for syscall to unsigned long to fix issues with musl
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'kmodloader.c')
-rw-r--r--kmodloader.c2
1 files changed, 1 insertions, 1 deletions
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);