mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-16 17:22:44 +03:00
Reduce scope of a couple of variables.
This commit is contained in:
parent
c8099aef3f
commit
587c0229c3
@ -188,14 +188,14 @@ struct active_message *ro_message_add(unsigned int message_code,
|
|||||||
bool ro_message_handle_message(wimp_event_no event, wimp_message *message)
|
bool ro_message_handle_message(wimp_event_no event, wimp_message *message)
|
||||||
{
|
{
|
||||||
struct active_message *test;
|
struct active_message *test;
|
||||||
bool handled = false;
|
|
||||||
int ref;
|
|
||||||
|
|
||||||
assert(message);
|
assert(message);
|
||||||
|
|
||||||
if (event == wimp_USER_MESSAGE_ACKNOWLEDGE) {
|
if (event == wimp_USER_MESSAGE_ACKNOWLEDGE) {
|
||||||
/* handle message acknowledgement */
|
/* handle message acknowledgement */
|
||||||
ref = message->my_ref;
|
bool handled = false;
|
||||||
|
int ref = message->my_ref;
|
||||||
|
|
||||||
if (ref == 0)
|
if (ref == 0)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user