Properly mark functions without arguments as (void)
Fixes compilation with -Werror=old-style-definition
Этот коммит содержится в:
родитель
a5e8a43943
Коммит
dc78e8db19
@ -256,7 +256,7 @@ static void browse_draw_item(struct dir *n, int row) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void browse_draw() {
|
void browse_draw(void) {
|
||||||
struct dir *t;
|
struct dir *t;
|
||||||
const char *tmp;
|
const char *tmp;
|
||||||
int selected = 0, i;
|
int selected = 0, i;
|
||||||
|
@ -98,7 +98,7 @@ static void delete_draw_error(void) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void delete_draw() {
|
void delete_draw(void) {
|
||||||
browse_draw();
|
browse_draw();
|
||||||
switch(state) {
|
switch(state) {
|
||||||
case DS_CONFIRM: delete_draw_confirm(); break;
|
case DS_CONFIRM: delete_draw_confirm(); break;
|
||||||
@ -211,7 +211,7 @@ delete_nxt:
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void delete_process() {
|
void delete_process(void) {
|
||||||
struct dir *par;
|
struct dir *par;
|
||||||
|
|
||||||
/* confirm */
|
/* confirm */
|
||||||
|
@ -65,7 +65,7 @@ void dir_curpath_enter(const char *name) {
|
|||||||
|
|
||||||
|
|
||||||
/* removes last component from dir_curpath */
|
/* removes last component from dir_curpath */
|
||||||
void dir_curpath_leave() {
|
void dir_curpath_leave(void) {
|
||||||
char *tmp;
|
char *tmp;
|
||||||
if((tmp = strrchr(dir_curpath, '/')) == NULL)
|
if((tmp = strrchr(dir_curpath, '/')) == NULL)
|
||||||
strcpy(dir_curpath, "/");
|
strcpy(dir_curpath, "/");
|
||||||
@ -180,7 +180,7 @@ static void draw_error(char *cur, char *msg) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void dir_draw() {
|
void dir_draw(void) {
|
||||||
float f;
|
float f;
|
||||||
const char *unit;
|
const char *unit;
|
||||||
|
|
||||||
|
@ -89,7 +89,7 @@ int exclude_match(char *path) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void exclude_clear() {
|
void exclude_clear(void) {
|
||||||
struct exclude *n, *l;
|
struct exclude *n, *l;
|
||||||
|
|
||||||
for(n=excludes; n!=NULL; n=l) {
|
for(n=excludes; n!=NULL; n=l) {
|
||||||
|
@ -70,7 +70,7 @@ static const char *flags[FLAGS*2] = {
|
|||||||
"F", "Excluded firmlink",
|
"F", "Excluded firmlink",
|
||||||
};
|
};
|
||||||
|
|
||||||
void help_draw() {
|
void help_draw(void) {
|
||||||
int i, line;
|
int i, line;
|
||||||
|
|
||||||
browse_draw();
|
browse_draw();
|
||||||
@ -203,7 +203,7 @@ int help_key(int ch) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void help_init() {
|
void help_init(void) {
|
||||||
page = 1;
|
page = 1;
|
||||||
start = 0;
|
start = 0;
|
||||||
pstate = ST_HELP;
|
pstate = ST_HELP;
|
||||||
|
@ -317,7 +317,7 @@ static void init_nc(void) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void close_nc() {
|
void close_nc(void) {
|
||||||
if(ncurses_init) {
|
if(ncurses_init) {
|
||||||
erase();
|
erase();
|
||||||
refresh();
|
refresh();
|
||||||
|
@ -38,13 +38,13 @@ int quit_key(int ch) {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void quit_draw() {
|
void quit_draw(void) {
|
||||||
browse_draw();
|
browse_draw();
|
||||||
|
|
||||||
nccreate(4,30, "ncdu confirm quit");
|
nccreate(4,30, "ncdu confirm quit");
|
||||||
ncaddstr(2,2, "Really quit? (y/N)");
|
ncaddstr(2,2, "Really quit? (y/N)");
|
||||||
}
|
}
|
||||||
|
|
||||||
void quit_init() {
|
void quit_init(void) {
|
||||||
pstate = ST_QUIT;
|
pstate = ST_QUIT;
|
||||||
}
|
}
|
||||||
|
@ -51,7 +51,7 @@ static void set_level(void) {
|
|||||||
done++;
|
done++;
|
||||||
}
|
}
|
||||||
|
|
||||||
void shell_draw() {
|
void shell_draw(void) {
|
||||||
const char *full_path;
|
const char *full_path;
|
||||||
int res;
|
int res;
|
||||||
|
|
||||||
@ -95,6 +95,6 @@ void shell_draw() {
|
|||||||
pstate = ST_BROWSE;
|
pstate = ST_BROWSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
void shell_init() {
|
void shell_init(void) {
|
||||||
pstate = ST_SHELL;
|
pstate = ST_SHELL;
|
||||||
}
|
}
|
||||||
|
@ -146,7 +146,7 @@ char *fmtmode(unsigned short mode) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void read_locale() {
|
void read_locale(void) {
|
||||||
#ifdef HAVE_LOCALE_H
|
#ifdef HAVE_LOCALE_H
|
||||||
char *locale_thou_sep;
|
char *locale_thou_sep;
|
||||||
#endif
|
#endif
|
||||||
@ -267,7 +267,7 @@ static const struct {
|
|||||||
{0,0,0}
|
{0,0,0}
|
||||||
};
|
};
|
||||||
|
|
||||||
void uic_init() {
|
void uic_init(void) {
|
||||||
size_t i, j;
|
size_t i, j;
|
||||||
|
|
||||||
start_color();
|
start_color();
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user