From d010e76076c81a560abbed46fde8fbf807d90c15 Mon Sep 17 00:00:00 2001 From: Douglas Clowes Date: Mon, 14 Jul 2014 13:18:26 +1000 Subject: [PATCH] SICS-759 Make asyncprotocol look for the list command in the correct place. --- asyncprotocol.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/asyncprotocol.c b/asyncprotocol.c index 9fcf6827..fc243d1a 100644 --- a/asyncprotocol.c +++ b/asyncprotocol.c @@ -269,17 +269,17 @@ int AsyncProtocolAction(SConnection * pCon, SicsInterp * pSics, SCWrite(pCon, line, eValue); } return 1; + } else if (strcasecmp(argv[1], "list") == 0) { + int ac = 2; + char *av[3] = { argv[0], 0, 0 }; + av[1] = "sendterminator"; + AsyncProtocolAction(pCon, pSics, pData, ac, av); + av[1] = "replyterminator"; + AsyncProtocolAction(pCon, pSics, pData, ac, av); + return 1; } - } else if (strcasecmp(argv[1], "list") == 0) { - int ac = 2; - char *av[3] = { argv[0], 0, 0 }; - av[1] = "sendterminator"; - AsyncProtocolAction(pCon, pSics, pData, ac, av); - av[1] = "replyterminator"; - AsyncProtocolAction(pCon, pSics, pData, ac, av); - return 1; - } /* handle any other actions here */ + } return AsyncProtocolNoAction(pCon, pSics, pData, argc, argv); }