mirror of
https://github.com/rkd77/elinks.git
synced 2025-04-18 00:47:36 -04: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 2b7788614f102db37e76ac612c148c32c208b623 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:
parent
a0d624cd61
commit
c692bf8222
@ -358,7 +358,7 @@ never_for_this_site(void *form_)
|
|||||||
struct formhist_data *form = form_;
|
struct formhist_data *form = form_;
|
||||||
|
|
||||||
form->dontsave = 1;
|
form->dontsave = 1;
|
||||||
return remember_form(form);
|
remember_form(form);
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned char *
|
unsigned char *
|
||||||
|
Loading…
x
Reference in New Issue
Block a user