Replace _getshort() and _getlong() with NS_GET16() and NS_GET32() respectively.
Fixes compilation on cygwin (and possibly other targets). git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@148 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
@@ -2655,14 +2655,10 @@ static int ar_procanswer(struct reslist *rptr, HEADER *hptr, char *buf, char *eo
|
||||
* the pointer to the right spot. Some of thse are actually
|
||||
* useful so its not a good idea to skip past in one big jump.
|
||||
*/
|
||||
type = (int)_getshort(cp);
|
||||
cp += sizeof(short);
|
||||
class = (int)_getshort(cp);
|
||||
cp += sizeof(short);
|
||||
ttl = (unsigned int)_getlong(cp);
|
||||
cp += INT32SZ;
|
||||
dlen = (int)_getshort(cp);
|
||||
cp += sizeof(short);
|
||||
NS_GET16(type, cp);
|
||||
NS_GET16(class, cp);
|
||||
NS_GET32(ttl, cp);
|
||||
NS_GET16(dlen, cp);
|
||||
rptr->re_type = type;
|
||||
|
||||
switch(type)
|
||||
|
||||
Reference in New Issue
Block a user