From 1dfe490f9b7b1d89e243dc2b7a55d02cb1db85d5 Mon Sep 17 00:00:00 2001 From: oliverschmidt Date: Sun, 31 Oct 2010 22:51:17 +0000 Subject: [PATCH] Use some defined event constant instead of just 0. --- cpu/6502/dhcp/dhcp-client.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cpu/6502/dhcp/dhcp-client.c b/cpu/6502/dhcp/dhcp-client.c index bdcf638e6..d9fc4c779 100644 --- a/cpu/6502/dhcp/dhcp-client.c +++ b/cpu/6502/dhcp/dhcp-client.c @@ -29,7 +29,7 @@ * * This file is part of the Contiki desktop environment * - * $Id: dhcp-client.c,v 1.4 2010/07/21 22:35:59 oliverschmidt Exp $ + * $Id: dhcp-client.c,v 1.5 2010/10/31 22:51:17 oliverschmidt Exp $ * */ @@ -201,14 +201,14 @@ PROCESS_THREAD(dhcp_process, ev, data) ctk_window_open(&window); /* Allow resolver to set DNS server address. */ - process_post(PROCESS_CURRENT(), 0, NULL); + process_post(PROCESS_CURRENT(), PROCESS_EVENT_MSG, NULL); dhcpc_init(uip_ethaddr.addr, sizeof(uip_ethaddr.addr)); while(1) { PROCESS_WAIT_EVENT(); - if(ev == 0) { + if(ev == PROCESS_EVENT_MSG) { makestrings(); ctk_window_redraw(&window); } else if(ev == tcpip_event) { @@ -248,7 +248,7 @@ dhcpc_configured(const struct dhcpc_state *s) #endif /* WITH_DNS */ set_statustext("Configured."); - process_post(PROCESS_CURRENT(), 0, NULL); + process_post(PROCESS_CURRENT(), PROCESS_EVENT_MSG, NULL); } /*-----------------------------------------------------------------------------------*/ void @@ -264,6 +264,6 @@ dhcpc_unconfigured(const struct dhcpc_state *s) #endif /* WITH_DNS */ set_statustext("Unconfigured."); - process_post(PROCESS_CURRENT(), 0, NULL); + process_post(PROCESS_CURRENT(), PROCESS_EVENT_MSG, NULL); } /*-----------------------------------------------------------------------------------*/