diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-07-13 01:35:15 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-07-13 01:35:15 +0000 |
commit | 1cb000c6f96d40ccbeb25069c1b939e915b79cba (patch) | |
tree | 74a0d516e1320be9f264880b3706e43ee1a45d7b /nuttx/binfmt/binfmt_exec.c | |
parent | e7a04578288c0d41c819cb051b7fa80977a92d27 (diff) | |
download | nuttx-1cb000c6f96d40ccbeb25069c1b939e915b79cba.tar.gz nuttx-1cb000c6f96d40ccbeb25069c1b939e915b79cba.tar.bz2 nuttx-1cb000c6f96d40ccbeb25069c1b939e915b79cba.zip |
Add fileno()
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1985 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/binfmt/binfmt_exec.c')
-rw-r--r-- | nuttx/binfmt/binfmt_exec.c | 7 |
1 files changed, 3 insertions, 4 deletions
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; } |