if (*cp == '\0')
return -ENOEXEC; /* No interpreter name found */
i_name = cp;
- i_arg = 0;
+ i_arg = NULL;
for ( ; *cp && (*cp != ' ') && (*cp != '\t'); cp++)
/* nothing */ ;
while ((*cp == ' ') || (*cp == '\t'))
return search_binary_handler(bprm,regs);
}
-struct linux_binfmt script_format = {
+static struct linux_binfmt script_format = {
.module = THIS_MODULE,
.load_binary = load_script,
};
unregister_binfmt(&script_format);
}
-module_init(init_script_binfmt)
-module_exit(exit_script_binfmt)
+core_initcall(init_script_binfmt);
+module_exit(exit_script_binfmt);
MODULE_LICENSE("GPL");