diff options
Diffstat (limited to 'hicn-light/src/hicn/config/controlCacheClear.c')
-rw-r--r-- | hicn-light/src/hicn/config/controlCacheClear.c | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/hicn-light/src/hicn/config/controlCacheClear.c b/hicn-light/src/hicn/config/controlCacheClear.c index f412faa29..afd8f6fc1 100644 --- a/hicn-light/src/hicn/config/controlCacheClear.c +++ b/hicn-light/src/hicn/config/controlCacheClear.c @@ -31,10 +31,14 @@ static CommandReturn _controlCacheClear_Execute(CommandParser *parser, CommandOps *ops, - PARCList *args); + PARCList *args, + char *output, + size_t output_size); static CommandReturn _controlCacheClear_HelpExecute(CommandParser *parser, CommandOps *ops, - PARCList *args); + PARCList *args, + char *output, + size_t output_size); static const char *_commandCacheClear = "cache clear"; static const char *_commandCacheClearHelp = "help cache clear"; @@ -55,18 +59,21 @@ CommandOps *controlCacheClear_HelpCreate(ControlState *state) { static CommandReturn _controlCacheClear_HelpExecute(CommandParser *parser, CommandOps *ops, - PARCList *args) { - printf("cache clear\n"); - printf("\n"); + PARCList *args, + char *output, + size_t output_size) { + snprintf(output, output_size, "cache clear\n\n"); return CommandReturn_Success; } static CommandReturn _controlCacheClear_Execute(CommandParser *parser, CommandOps *ops, - PARCList *args) { + PARCList *args, + char *output, + size_t output_size) { if (parcList_Size(args) != 2) { - _controlCacheClear_HelpExecute(parser, ops, args); + _controlCacheClear_HelpExecute(parser, ops, args, output, output_size); return CommandReturn_Failure; } |