nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit f8ec08a9287d9091f7ed23481c66d5804687fe53
parent f09e6c183eec6642d4b3a7545758553c0811d85c
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Mon,  2 Jan 2023 10:48:18 +0100

tweaks: avoid warnings when compiling with -Wpedantic

Diffstat:
Msrc/nano.c | 2+-
Msrc/prototypes.h | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/nano.c b/src/nano.c @@ -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 || diff --git a/src/prototypes.h b/src/prototypes.h @@ -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. */