From dd91ab3f35500a0a13a7dced870ea5c6f9ad3765 Mon Sep 17 00:00:00 2001 From: patacongo Date: Mon, 12 Nov 2012 01:54:54 +0000 Subject: A few more build fixes git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5340 42af7a65-404d-4744-a932-0658087f49c3 --- apps/netutils/uiplib/uiplib.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'apps') diff --git a/apps/netutils/uiplib/uiplib.c b/apps/netutils/uiplib/uiplib.c index 32ffaeb06..50182efe1 100644 --- a/apps/netutils/uiplib/uiplib.c +++ b/apps/netutils/uiplib/uiplib.c @@ -45,6 +45,7 @@ #include #include +#include #include #include @@ -103,7 +104,7 @@ bool uiplib_hwmacconv(const char *hwstr, uint8_t *hw) unsigned char i; unsigned char j; - if (strlen(hwstr)!=17) + if (strlen(hwstr) != 17) { return false; } @@ -121,6 +122,7 @@ bool uiplib_hwmacconv(const char *hwstr, uint8_t *hw) { return false; } + if (c == ':' || c == 0) { *hw = tmp; @@ -144,6 +146,7 @@ bool uiplib_hwmacconv(const char *hwstr, uint8_t *hw) { return false; } + ++hwstr; } while(c != ':' && c != 0); -- cgit v1.2.3