A few more build fixes

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5340 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2012-11-12 01:54:54 +00:00
parent 3e25d82213
commit 0bf121d698

View File

@ -45,6 +45,7 @@
#include <stdint.h> #include <stdint.h>
#include <stdbool.h> #include <stdbool.h>
#include <string.h>
#include <debug.h> #include <debug.h>
#include <nuttx/net/uip/uip.h> #include <nuttx/net/uip/uip.h>
@ -103,7 +104,7 @@ bool uiplib_hwmacconv(const char *hwstr, uint8_t *hw)
unsigned char i; unsigned char i;
unsigned char j; unsigned char j;
if (strlen(hwstr)!=17) if (strlen(hwstr) != 17)
{ {
return false; return false;
} }
@ -121,6 +122,7 @@ bool uiplib_hwmacconv(const char *hwstr, uint8_t *hw)
{ {
return false; return false;
} }
if (c == ':' || c == 0) if (c == ':' || c == 0)
{ {
*hw = tmp; *hw = tmp;
@ -144,6 +146,7 @@ bool uiplib_hwmacconv(const char *hwstr, uint8_t *hw)
{ {
return false; return false;
} }
++hwstr; ++hwstr;
} }
while(c != ':' && c != 0); while(c != ':' && c != 0);