patch-2.3.13 linux/fs/binfmt_aout.c
Next file: linux/fs/binfmt_elf.c
Previous file: linux/drivers/video/virgefb.c
Back to the patch index
Back to the overall index
- Lines: 39
- Date:
Tue Aug 3 10:18:39 1999
- Orig file:
v2.3.12/linux/fs/binfmt_aout.c
- Orig date:
Wed Jul 28 14:47:42 1999
diff -u --recursive --new-file v2.3.12/linux/fs/binfmt_aout.c linux/fs/binfmt_aout.c
@@ -36,13 +36,7 @@
extern void dump_thread(struct pt_regs *, struct user *);
static struct linux_binfmt aout_format = {
- NULL,
-#ifndef MODULE
- NULL,
-#else
- &__this_module,
-#endif
- load_aout_binary, load_aout_library, aout_core_dump, PAGE_SIZE
+ NULL, THIS_MODULE, load_aout_binary, load_aout_library, aout_core_dump, PAGE_SIZE
};
static void set_brk(unsigned long start, unsigned long end)
@@ -559,17 +553,15 @@
}
-int __init init_aout_binfmt(void)
+static int __init init_aout_binfmt(void)
{
return register_binfmt(&aout_format);
}
-#ifdef MODULE
-int init_module(void) {
- return init_aout_binfmt();
-}
-
-void cleanup_module( void) {
+static void __exit exit_aout_binfmt(void)
+{
unregister_binfmt(&aout_format);
}
-#endif
+
+module_init(init_aout_binfmt)
+module_exit(exit_aout_binfmt)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)