diff options
Diffstat (limited to 'common/sys')
-rw-r--r-- | common/sys/net.c | 5 | ||||
-rw-r--r-- | common/sys/string.c | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/common/sys/net.c b/common/sys/net.c index 80566487..ba08ff7f 100644 --- a/common/sys/net.c +++ b/common/sys/net.c @@ -12,10 +12,11 @@ #include "cmsys.h" -unsigned int +uint32_t ipstr2int(const char *ip) { - unsigned int i, val = 0; + unsigned int i; + uint32_t val = 0; char buf[32]; char *nil, *p; diff --git a/common/sys/string.c b/common/sys/string.c index a6a10cc9..72c80cef 100644 --- a/common/sys/string.c +++ b/common/sys/string.c @@ -63,7 +63,7 @@ void chomp(char *src) /* ANSI ³B²z¨ç¼Æ */ /* ----------------------------------------------------- */ int -strip_blank(char *cbuf, char *buf) +strip_blank(char *cbuf, const char *buf) { for (; *buf; buf++) if (*buf != ' ') |