From 1cb000c6f96d40ccbeb25069c1b939e915b79cba Mon Sep 17 00:00:00 2001 From: patacongo Date: Mon, 13 Jul 2009 01:35:15 +0000 Subject: Add fileno() git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1985 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/binfmt/binfmt_exec.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'nuttx/binfmt') diff --git a/nuttx/binfmt/binfmt_exec.c b/nuttx/binfmt/binfmt_exec.c index 8a25445c0..2305f6d63 100644 --- a/nuttx/binfmt/binfmt_exec.c +++ b/nuttx/binfmt/binfmt_exec.c @@ -96,24 +96,23 @@ int exec(FAR const char *filename, FAR const char **argv, { struct binary_s bin; int ret; - int i; memset(&bin, 0, sizeof(struct binary_s)); bin.filename = filename; bin.exports = exports; - bin.nexports = NEXPORTS; + bin.nexports = nexports; ret = load_module(&bin); if (ret < 0) { - bdbg("ERROR: Failed to load program '%s'\n", dirlist[i]); + bdbg("ERROR: Failed to load program '%s'\n", filename); return ERROR; } ret = exec_module(&bin, 50); if (ret < 0) { - bdbg("ERROR: Failed to execute program '%s'\n", dirlist[i]); + bdbg("ERROR: Failed to execute program '%s'\n", filename); unload_module(&bin); return ERROR; } -- cgit v1.2.3