changeset 1015:9ced8e13cf91

fc-shell tch-dl command implementation: brown paper bag
author Mychaela Falconia <falcon@ivan.Harhan.ORG>
date Sun, 20 Mar 2016 23:07:46 +0000
parents 0511507bf6e7
children a6ca9ee289f7
files rvinterf/asyncshell/tchcmd.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/rvinterf/asyncshell/tchcmd.c	Sun Mar 20 22:52:25 2016 +0000
+++ b/rvinterf/asyncshell/tchcmd.c	Sun Mar 20 23:07:46 2016 +0000
@@ -28,11 +28,11 @@
 {
 	int config;
 
-	if (!strcmp(argv[1], "enable") || !strcmp(argv[1], "on") ||
-	    !strcmp(argv[1], "1"))
+	if (!strcmp(argv[0], "enable") || !strcmp(argv[0], "on") ||
+	    !strcmp(argv[0], "1"))
 		config = 1;
-	else if (!strcmp(argv[1], "disable") || !strcmp(argv[1], "off") ||
-		 !strcmp(argv[1], "0"))
+	else if (!strcmp(argv[0], "disable") || !strcmp(argv[0], "off") ||
+		 !strcmp(argv[0], "0"))
 		config = 0;
 	else {
 		printf("error: boolean argument required\n");