Mercurial > pidgin.yaz
changeset 11381:e0f42900de12
[gaim-migrate @ 13608]
Remove some warnings
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Wed, 31 Aug 2005 04:09:04 +0000 |
parents | eb49e64d02fd |
children | bdeace860555 |
files | src/dnssrv.c |
diffstat | 1 files changed, 7 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/src/dnssrv.c Wed Aug 31 03:29:05 2005 +0000 +++ b/src/dnssrv.c Wed Aug 31 04:09:04 2005 +0000 @@ -87,8 +87,8 @@ int size; int qdcount; int ancount; - gchar *end; - gchar *cp; + guchar *end; + guchar *cp; gchar name[256]; int type, dlen, pref, weight, port; gchar query[256]; @@ -102,18 +102,18 @@ ancount = ntohs(answer.hdr.ancount); - cp = (char*)&answer + sizeof(HEADER); - end = (char*)&answer + size; + cp = (guchar*)&answer + sizeof(HEADER); + end = (guchar*)&answer + size; /* skip over unwanted stuff */ while (qdcount-- > 0 && cp < end) { - size = dn_expand( (char*)&answer, end, cp, name, 256); + size = dn_expand( (unsigned char*)&answer, end, cp, name, 256); if(size < 0) goto end; cp += size + QFIXEDSZ; } while (ancount-- > 0 && cp < end) { - size = dn_expand((char*)&answer, end, cp, name, 256); + size = dn_expand((unsigned char*)&answer, end, cp, name, 256); if(size < 0) goto end; @@ -131,7 +131,7 @@ NS_GET16(port, cp); - size = dn_expand( (char*)&answer, end, cp, name, 256); + size = dn_expand( (unsigned char*)&answer, end, cp, name, 256); if(size < 0 ) goto end;