Signed-off-by: Mika Laitio <mika.laitio@nokia.com>
if (argc != 2)
return 255;
+ printf("argv[1]: %s\n", argv[1]);
if (uci_lookup_ptr(ctx, &ptr, argv[1], true) != UCI_OK) {
cli_perror();
return 1;
case CMD_DEL:
case CMD_RENAME:
case CMD_REVERT:
- case CMD_REORDER:
+ case CMD_REORDER: {
return uci_do_section_cmd(cmd, argc, argv);
+ }
case CMD_SHOW:
case CMD_EXPORT:
case CMD_COMMIT:
break;
case UCIMAP_LIST:
list = f->data->list;
- data = ucimap_list_append(f->data->list);
+ data = ucimap_list_append(list);
if (!data)
return false;