minor fixes

This commit is contained in:
Laila van Reenen 2024-07-19 22:32:56 +02:00
parent 8261e605bc
commit 8f71535dfd
Signed by: LailaTheElf
GPG Key ID: 1F4E6EE3E6DDF769
2 changed files with 2 additions and 3 deletions

View File

@ -147,7 +147,6 @@ void historyNext(CLI_t* cli)
// write line // write line
if ((ret >= 0) && (line != NULL)) if ((ret >= 0) && (line != NULL))
{ {
int i;
CLI_stringOut(cli, line); CLI_stringOut(cli, line);
} }
} }

View File

@ -123,7 +123,7 @@ int History_getPrev(History_t* history, char** line)
*line = NULL; *line = NULL;
retCode = -1; retCode = -1;
} }
return 0; return retCode;
} }
int History_getNext(History_t* history, char** line) int History_getNext(History_t* history, char** line)
@ -144,7 +144,7 @@ int History_getNext(History_t* history, char** line)
*line = NULL; *line = NULL;
retCode = -1; retCode = -1;
} }
return 0; return retCode;
} }
int History_getFullHistory(History_t* history, char*** list) int History_getFullHistory(History_t* history, char*** list)