[PATCH 07/30] exec command: Fix compilation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



read_file and run_command take an additional argument now.

Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx>
---
 commands/exec.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/commands/exec.c b/commands/exec.c
index a25e8cf..e2509ff 100644
--- a/commands/exec.c
+++ b/commands/exec.c
@@ -38,11 +38,11 @@ static int do_exec(int argc, char *argv[])
 		return COMMAND_ERROR_USAGE;
 
 	for (i=1; i<argc; ++i) {
-		script = read_file(argv[i]);
+		script = read_file(argv[i], NULL);
 		if (!script)
 			return 1;
 
-		if (run_command (script, flag) == -1)
+		if (run_command (script, 0) == -1)
 			goto out;
 		free(script);
 	}
-- 
1.7.10


_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox


[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux