tweaks: avoid warnings when compiling with -Wpedantic

This commit is contained in:
Benno Schulenberg 2023-01-02 10:48:18 +01:00
parent f09e6c183e
commit f8ec08a928
2 changed files with 2 additions and 2 deletions

View File

@ -1388,7 +1388,7 @@ bool wanted_to_move(void (*func)(void))
}
/* Return TRUE when the given function makes a change -- no good for view mode. */
bool changes_something(const void *f)
bool changes_something(functionptrtype f)
{
return (f == do_savefile || f == do_writeout || f == do_enter || f == do_tab ||
f == do_delete || f == do_backspace || f == cut_text || f == paste_text ||

View File

@ -427,7 +427,7 @@ void terminal_init(void);
void confirm_margin(void);
#endif
void unbound_key(int code);
bool changes_something(const void *f);
bool changes_something(functionptrtype f);
void inject(char *burst, size_t count);
/* Most functions in prompt.c. */