diff options
author | Yang Tse <yangsita@gmail.com> | 2007-02-01 01:42:13 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2007-02-01 01:42:13 +0000 |
commit | fb38ee15e249e187ffcbb91df82684a61783945c (patch) | |
tree | e2fb7c8f7cdb6efbd69bac999aaea5f0af08ecc0 /ares_mkquery.c | |
parent | 4a30753b47510fd84a2189cf02ea0a53ea7f1f2d (diff) | |
download | c-ares-fb38ee15e249e187ffcbb91df82684a61783945c.tar.gz c-ares-fb38ee15e249e187ffcbb91df82684a61783945c.tar.bz2 c-ares-fb38ee15e249e187ffcbb91df82684a61783945c.zip |
compiler warning fix
Diffstat (limited to 'ares_mkquery.c')
-rw-r--r-- | ares_mkquery.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ares_mkquery.c b/ares_mkquery.c index e30abfc..11ce302 100644 --- a/ares_mkquery.c +++ b/ares_mkquery.c @@ -141,7 +141,7 @@ int ares_mkquery(const char *name, int dnsclass, int type, unsigned short id, return ARES_EBADNAME; /* Encode the length and copy the data. */ - *q++ = len; + *q++ = (unsigned char)len; for (p = name; *p && *p != '.'; p++) { if (*p == '\\' && *(p + 1) != 0) |