new_process_module_arguments returns 0 on error and 1 if everything went ok

somehow the ! got lost..
symptoms: modules could only be loaded _without_ parameters
This commit is contained in:
Robert Griebl 2004-07-20 15:43:57 +00:00
parent 83676f1731
commit 809387fe9e

View File

@ -290,7 +290,7 @@ extern int insmod_ng_main( int argc, char **argv);
#ifndef MODUTILS_MODULE_H #ifndef MODUTILS_MODULE_H
static const int MODUTILS_MODULE_H = 1; static const int MODUTILS_MODULE_H = 1;
#ident "$Id: insmod.c,v 1.121 2004/06/22 20:10:53 andersen Exp $" #ident "$Id: insmod.c,v 1.122 2004/07/20 15:43:57 sandman Exp $"
/*======================================================================*/ /*======================================================================*/
/* For sizeof() which are related to the module platform and not to the /* For sizeof() which are related to the module platform and not to the
@ -448,7 +448,7 @@ int delete_module(const char *);
#ifndef MODUTILS_OBJ_H #ifndef MODUTILS_OBJ_H
static const int MODUTILS_OBJ_H = 1; static const int MODUTILS_OBJ_H = 1;
#ident "$Id: insmod.c,v 1.121 2004/06/22 20:10:53 andersen Exp $" #ident "$Id: insmod.c,v 1.122 2004/07/20 15:43:57 sandman Exp $"
/* The relocatable object is manipulated using elfin types. */ /* The relocatable object is manipulated using elfin types. */
@ -3865,7 +3865,7 @@ extern int insmod_main( int argc, char **argv)
++optind; ++optind;
if (optind < argc) { if (optind < argc) {
if (new_process_module_arguments(f, argc - optind, argv + optind)) if (!new_process_module_arguments(f, argc - optind, argv + optind))
{ {
goto out; goto out;
} }