diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2002-07-03 18:38:05 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2002-07-03 18:38:05 +0000 |
commit | 1cdb4f411c123a1f7402c9efbe46b3b05c3d94a1 (patch) | |
tree | 54c7b6b4bbaf2e493e773f9e48d7eb459f60f197 /mdk-stage1/modules.c | |
parent | a3fd355593f7ab9ae5c6d57ec69ef3f5a2f8cb9a (diff) | |
download | drakx-1cdb4f411c123a1f7402c9efbe46b3b05c3d94a1.tar drakx-1cdb4f411c123a1f7402c9efbe46b3b05c3d94a1.tar.gz drakx-1cdb4f411c123a1f7402c9efbe46b3b05c3d94a1.tar.bz2 drakx-1cdb4f411c123a1f7402c9efbe46b3b05c3d94a1.tar.xz drakx-1cdb4f411c123a1f7402c9efbe46b3b05c3d94a1.zip |
compile with -W
Diffstat (limited to 'mdk-stage1/modules.c')
-rw-r--r-- | mdk-stage1/modules.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/mdk-stage1/modules.c b/mdk-stage1/modules.c index e2c06eebc..1fe1cd42a 100644 --- a/mdk-stage1/modules.c +++ b/mdk-stage1/modules.c @@ -95,7 +95,7 @@ static int load_modules_dependencies(void) fstat(fd, &s); buf = alloca(s.st_size + 1); - if (read(fd, buf, s.st_size) != s.st_size) { + if (read(fd, buf, s.st_size) != (ssize_t)s.st_size) { log_perror(deps_file); return -1; } @@ -190,7 +190,7 @@ static void add_modules_conf(char * str) return; } - if (write(fd, data, strlen(data) + 1) != strlen(data) + 1) + if (write(fd, data, strlen(data) + 1) != (ssize_t) (strlen(data) + 1)) log_perror(str); close(fd); @@ -239,7 +239,11 @@ static enum insmod_return insmod_with_deps(const char * mod_name, char * options } +#ifndef DISABLE_NETWORK enum insmod_return my_insmod(const char * mod_name, enum driver_type type, char * options) +#else +enum insmod_return my_insmod(const char * mod_name, enum driver_type type __attribute__ ((unused)), char * options) +#endif { int i; #ifndef DISABLE_NETWORK |