1
1

Properly mark functions without arguments as (void)

Fixes compilation with -Werror=old-style-definition
Этот коммит содержится в:
Yorhel 2022-11-05 10:54:35 +01:00
родитель a5e8a43943
Коммит dc78e8db19
9 изменённых файлов: 15 добавлений и 15 удалений

Просмотреть файл

@ -256,7 +256,7 @@ static void browse_draw_item(struct dir *n, int row) {
}
void browse_draw() {
void browse_draw(void) {
struct dir *t;
const char *tmp;
int selected = 0, i;

Просмотреть файл

@ -98,7 +98,7 @@ static void delete_draw_error(void) {
}
void delete_draw() {
void delete_draw(void) {
browse_draw();
switch(state) {
case DS_CONFIRM: delete_draw_confirm(); break;
@ -211,7 +211,7 @@ delete_nxt:
}
void delete_process() {
void delete_process(void) {
struct dir *par;
/* confirm */

Просмотреть файл

@ -65,7 +65,7 @@ void dir_curpath_enter(const char *name) {
/* removes last component from dir_curpath */
void dir_curpath_leave() {
void dir_curpath_leave(void) {
char *tmp;
if((tmp = strrchr(dir_curpath, '/')) == NULL)
strcpy(dir_curpath, "/");
@ -180,7 +180,7 @@ static void draw_error(char *cur, char *msg) {
}
void dir_draw() {
void dir_draw(void) {
float f;
const char *unit;

Просмотреть файл

@ -89,7 +89,7 @@ int exclude_match(char *path) {
}
void exclude_clear() {
void exclude_clear(void) {
struct exclude *n, *l;
for(n=excludes; n!=NULL; n=l) {

Просмотреть файл

@ -70,7 +70,7 @@ static const char *flags[FLAGS*2] = {
"F", "Excluded firmlink",
};
void help_draw() {
void help_draw(void) {
int i, line;
browse_draw();
@ -203,7 +203,7 @@ int help_key(int ch) {
}
void help_init() {
void help_init(void) {
page = 1;
start = 0;
pstate = ST_HELP;

Просмотреть файл

@ -317,7 +317,7 @@ static void init_nc(void) {
}
void close_nc() {
void close_nc(void) {
if(ncurses_init) {
erase();
refresh();

Просмотреть файл

@ -38,13 +38,13 @@ int quit_key(int ch) {
return 0;
}
void quit_draw() {
void quit_draw(void) {
browse_draw();
nccreate(4,30, "ncdu confirm quit");
ncaddstr(2,2, "Really quit? (y/N)");
}
void quit_init() {
void quit_init(void) {
pstate = ST_QUIT;
}

Просмотреть файл

@ -51,7 +51,7 @@ static void set_level(void) {
done++;
}
void shell_draw() {
void shell_draw(void) {
const char *full_path;
int res;
@ -95,6 +95,6 @@ void shell_draw() {
pstate = ST_BROWSE;
}
void shell_init() {
void shell_init(void) {
pstate = ST_SHELL;
}

Просмотреть файл

@ -146,7 +146,7 @@ char *fmtmode(unsigned short mode) {
}
void read_locale() {
void read_locale(void) {
#ifdef HAVE_LOCALE_H
char *locale_thou_sep;
#endif
@ -267,7 +267,7 @@ static const struct {
{0,0,0}
};
void uic_init() {
void uic_init(void) {
size_t i, j;
start_color();