diff options
author | Yang Tse <yangsita@gmail.com> | 2007-04-13 07:57:31 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2007-04-13 07:57:31 +0000 |
commit | 038fe54e2133119e7836d79ea4aaa5ca705159fc (patch) | |
tree | 92e7fd1b3f072e98cb7f4a56df475b8d3cf37120 /lib/inet_pton.c | |
parent | 4b5a65455e0c88660540755541e88d8307259834 (diff) | |
download | curl-038fe54e2133119e7836d79ea4aaa5ca705159fc.tar.gz |
fix compiler warning
Diffstat (limited to 'lib/inet_pton.c')
-rw-r--r-- | lib/inet_pton.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/inet_pton.c b/lib/inet_pton.c index fb7feef28..163df3ce3 100644 --- a/lib/inet_pton.c +++ b/lib/inet_pton.c @@ -116,7 +116,7 @@ inet_pton4(const char *src, unsigned char *dst) if (val > 255) return (0); - *tp = val; + *tp = (unsigned char)val; if (! saw_digit) { if (++octets > 4) return (0); |