patch-1.3.72 linux/fs/exec.c

Next file: linux/fs/fat/dir.c
Previous file: linux/drivers/scsi/sd_ioctl.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.71/linux/fs/exec.c linux/fs/exec.c
@@ -106,11 +106,6 @@
 	}
 	return -EINVAL;
 }
-
-struct linux_binfmt * get_binfmt_list()
-{
-	return formats;
-}
 #endif	/* CONFIG_MODULES */
 
 int open_inode(struct inode * inode, int mode)
@@ -535,7 +530,7 @@
 	}
 #endif
 	for (try=0; try<2; try++) {
-		for (fmt = get_binfmt_list() ; fmt ; fmt = fmt->next) {
+		for (fmt = formats ; fmt ; fmt = fmt->next) {
 			int (*fn)(struct linux_binprm *, struct pt_regs *) = fmt->load_binary;
 			if (!fn)
 				continue;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this