mirror of
https://github.com/espressif/esp-idf.git
synced 2026-05-05 04:15:21 +02:00
tools: Mass fixing of empty prototypes (for -Wstrict-prototypes)
This commit is contained in:
@@ -70,7 +70,7 @@ esp_err_t esp_console_init(const esp_console_config_t *config)
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_console_deinit()
|
||||
esp_err_t esp_console_deinit(void)
|
||||
{
|
||||
if (!s_tmp_line_buf) {
|
||||
return ESP_ERR_INVALID_STATE;
|
||||
@@ -232,7 +232,7 @@ static int help_command(int argc, char **argv)
|
||||
}
|
||||
|
||||
|
||||
esp_err_t esp_console_register_help_command()
|
||||
esp_err_t esp_console_register_help_command(void)
|
||||
{
|
||||
esp_console_cmd_t command = {
|
||||
.command = "help",
|
||||
|
||||
@@ -52,7 +52,7 @@ esp_err_t esp_console_init(const esp_console_config_t* config);
|
||||
* - ESP_OK on success
|
||||
* - ESP_ERR_INVALID_STATE if not initialized yet
|
||||
*/
|
||||
esp_err_t esp_console_deinit();
|
||||
esp_err_t esp_console_deinit(void);
|
||||
|
||||
|
||||
/**
|
||||
@@ -185,7 +185,7 @@ const char *esp_console_get_hint(const char *buf, int *color, int *bold);
|
||||
* - ESP_OK on success
|
||||
* - ESP_ERR_INVALID_STATE, if esp_console_init wasn't called
|
||||
*/
|
||||
esp_err_t esp_console_register_help_command();
|
||||
esp_err_t esp_console_register_help_command(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
@@ -205,7 +205,7 @@ void linenoiseSetDumbMode(int set) {
|
||||
/* Use the ESC [6n escape sequence to query the horizontal cursor position
|
||||
* and return it. On error -1 is returned, on success the position of the
|
||||
* cursor. */
|
||||
static int getCursorPosition() {
|
||||
static int getCursorPosition(void) {
|
||||
char buf[32];
|
||||
int cols, rows;
|
||||
unsigned int i = 0;
|
||||
@@ -228,7 +228,7 @@ static int getCursorPosition() {
|
||||
|
||||
/* Try to get the number of columns in the current terminal, or assume 80
|
||||
* if it fails. */
|
||||
static int getColumns() {
|
||||
static int getColumns(void) {
|
||||
int start, cols;
|
||||
|
||||
/* Get the initial position so we can restore it later. */
|
||||
@@ -887,7 +887,7 @@ static int linenoiseEdit(char *buf, size_t buflen, const char *prompt)
|
||||
return l.len;
|
||||
}
|
||||
|
||||
int linenoiseProbe() {
|
||||
int linenoiseProbe(void) {
|
||||
/* Switch to non-blocking mode */
|
||||
int flags = fcntl(STDIN_FILENO, F_GETFL);
|
||||
flags |= O_NONBLOCK;
|
||||
@@ -1000,7 +1000,7 @@ void linenoiseFree(void *ptr) {
|
||||
|
||||
/* ================================ History ================================= */
|
||||
|
||||
void linenoiseHistoryFree() {
|
||||
void linenoiseHistoryFree(void) {
|
||||
if (history) {
|
||||
for (int j = 0; j < history_len; j++) {
|
||||
free(history[j]);
|
||||
|
||||
@@ -63,7 +63,7 @@ int linenoiseHistoryAdd(const char *line);
|
||||
int linenoiseHistorySetMaxLen(int len);
|
||||
int linenoiseHistorySave(const char *filename);
|
||||
int linenoiseHistoryLoad(const char *filename);
|
||||
void linenoiseHistoryFree();
|
||||
void linenoiseHistoryFree(void);
|
||||
void linenoiseClearScreen(void);
|
||||
void linenoiseSetMultiLine(int ml);
|
||||
void linenoiseSetDumbMode(int set);
|
||||
|
||||
Reference in New Issue
Block a user