1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

1045: fix "void function cannot return value" in formhist

never_for_this_site(form) did return remember_form(form).
In ELinks 0.11.0, both functions returned int, so this was OK.
In commit 2b7788614f however, the
functions were changed to return void, as required by msg_box().
GCC still accepted the return statement but Sun Studio 11 did not.
This commit is contained in:
Fabio Bonelli 2008-08-29 13:27:00 +02:00 committed by Kalle Olavi Niemitalo
parent a0d624cd61
commit c692bf8222

View File

@ -358,7 +358,7 @@ never_for_this_site(void *form_)
struct formhist_data *form = form_;
form->dontsave = 1;
return remember_form(form);
remember_form(form);
}
unsigned char *