Reduce scope of a couple of variables.

This commit is contained in:
Michael Drake 2014-05-26 11:57:40 +01:00
parent c8099aef3f
commit 587c0229c3

View File

@ -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)
{
struct active_message *test;
bool handled = false;
int ref;
assert(message);
if (event == wimp_USER_MESSAGE_ACKNOWLEDGE) {
/* handle message acknowledgement */
ref = message->my_ref;
bool handled = false;
int ref = message->my_ref;
if (ref == 0)
return false;