* More uip_ipaddr_t fixes.

This commit is contained in:
bg- 2006-08-14 14:01:02 +00:00
parent eb7fcb54b4
commit a99f0ca352
3 changed files with 16 additions and 15 deletions

View file

@ -30,7 +30,7 @@
*
* Author: Adam Dunkels <adam@sics.se>
*
* $Id: main.c,v 1.1 2006/06/17 22:41:35 adamdunkels Exp $
* $Id: main.c,v 1.2 2006/08/14 14:01:02 bg- Exp $
*/
/**
@ -233,19 +233,20 @@ clock_seconds(void)
void
uip_log(char *m)
{
u16_t addr[2];
uip_gethostaddr(addr);
uip_ipaddr_t addr;
uip_gethostaddr(&addr);
printf("uIP log at %d.%d.%d.%d: %s\n",
uip_ipaddr1(addr),
uip_ipaddr2(addr),
uip_ipaddr3(addr),
uip_ipaddr4(addr),
uip_ipaddr1(&addr),
uip_ipaddr2(&addr),
uip_ipaddr3(&addr),
uip_ipaddr4(&addr),
m);
fflush(NULL);
}
void
configurator_send_config(u16_t *addr, unsigned long seconds)
configurator_send_config(uip_ipaddr_t *addr, unsigned long seconds)
{
printf("Configurator: address %d.%d.%d.%d, seconds %lu\n",
uip_ipaddr1(addr),