summaryrefslogtreecommitdiff
path: root/nuttx/binfmt/builtin.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-01-17 18:32:13 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-01-17 18:32:13 +0000
commit68453d683cb221e509258d71bddf207a330a1656 (patch)
tree677aa6a3af5241be04684f2d02eb0e719234b68c /nuttx/binfmt/builtin.c
parentd8d9cc8a96cdc2219af7bec8142e7633779fd685 (diff)
downloadpx4-nuttx-68453d683cb221e509258d71bddf207a330a1656.tar.gz
px4-nuttx-68453d683cb221e509258d71bddf207a330a1656.tar.bz2
px4-nuttx-68453d683cb221e509258d71bddf207a330a1656.zip
NSH will now run files from the file system; Add logic to unload and clean-up after running a task from a file system; Extensions to builtin apps from Mike Smith
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5529 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/binfmt/builtin.c')
-rw-r--r--nuttx/binfmt/builtin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/binfmt/builtin.c b/nuttx/binfmt/builtin.c
index d80d9f5d8..e492f72e5 100644
--- a/nuttx/binfmt/builtin.c
+++ b/nuttx/binfmt/builtin.c
@@ -98,11 +98,11 @@ static int builtin_loadbinary(struct binary_s *binp)
/* Open the binary file for reading (only) */
- fd = open(filename, O_RDONLY);
+ fd = open(binp->filename, O_RDONLY);
if (fd < 0)
{
int errval = errno;
- bdbg("ERROR: Failed to open binary %s: %d\n", filename, errval);
+ bdbg("ERROR: Failed to open binary %s: %d\n", binp->filename, errval);
return -errval;
}