Type-check button arguments of msg_box.
commit2b7788614f102db37e76ac612c148c32c208b623
authorKalle Olavi Niemitalo <kon@iki.fi>
Sat, 10 Mar 2007 21:50:56 +0000 (10 23:50 +0200)
committerKalle Olavi Niemitalo <Kalle@Astalo.kon.iki.fi>
Sat, 10 Mar 2007 21:50:56 +0000 (10 23:50 +0200)
tree84fe48b53ad0fce2aa67e4d7f83e177948cfea19
parent1e8a61e09b55f04f4b7338e5559ae05fbc01abb1
Type-check button arguments of msg_box.

Don't cast function pointers; calling functions via pointers of
incorrect types is not guaranteed to work.  Instead, define the
functions with the desired types, and make them cast the incoming
parameters.  Or define wrapper functions if the return types don't
match.

really_exit_prog wasn't being used outside src/dialogs/menu.c,
and I had to change its parameter type, so it's now static.
16 files changed:
src/bfu/hierbox.c
src/bfu/msgbox.c
src/bfu/msgbox.h
src/config/dialogs.c
src/cookies/dialogs.c
src/dialogs/info.c
src/dialogs/menu.c
src/dialogs/menu.h
src/formhist/formhist.c
src/mime/dialogs.c
src/protocol/protocol.c
src/scripting/python/dialogs.c
src/session/download.c
src/session/session.c
src/session/task.c
src/terminal/tab.c