neozeed ircu2.9.32-linux-hacks.diff
This commit is contained in:
@@ -25,7 +25,7 @@ static char sccsid[] = "@(#)res_comp.c 6.18 (Berkeley) 6/27/90";
|
||||
#include <stdio.h>
|
||||
#include "nameser.h"
|
||||
|
||||
static dn_find();
|
||||
static int dn_find();
|
||||
|
||||
/*
|
||||
* Expand compressed domain name 'comp_dn' to full domain name.
|
||||
@@ -34,7 +34,7 @@ static dn_find();
|
||||
* 'exp_dn' is a pointer to a buffer of size 'length' for the result.
|
||||
* Return size of compressed name or -1 if there was an error.
|
||||
*/
|
||||
dn_expand(msg, eomorig, comp_dn, exp_dn, length)
|
||||
int dn_expand(msg, eomorig, comp_dn, exp_dn, length)
|
||||
u_char *msg, *eomorig, *comp_dn, *exp_dn;
|
||||
int length;
|
||||
{
|
||||
@@ -49,7 +49,7 @@ dn_expand(msg, eomorig, comp_dn, exp_dn, length)
|
||||
/*
|
||||
* fetch next label in domain name
|
||||
*/
|
||||
while (n = *cp++) {
|
||||
while ((n = *cp++)) {
|
||||
/*
|
||||
* Check for indirection
|
||||
*/
|
||||
@@ -113,15 +113,15 @@ dn_expand(msg, eomorig, comp_dn, exp_dn, length)
|
||||
* If 'dnptr' is NULL, we don't try to compress names. If 'lastdnptr'
|
||||
* is NULL, we don't update the list.
|
||||
*/
|
||||
dn_comp(exp_dn, comp_dn, length, dnptrs, lastdnptr)
|
||||
u_char *exp_dn, *comp_dn;
|
||||
int dn_comp(exp_dn, comp_dn, length, dnptrs, lastdnptr)
|
||||
char *exp_dn, *comp_dn;
|
||||
int length;
|
||||
u_char **dnptrs, **lastdnptr;
|
||||
char **dnptrs, **lastdnptr;
|
||||
{
|
||||
register u_char *cp, *dn;
|
||||
register char *cp, *dn, *eob;
|
||||
register int c, l;
|
||||
u_char **cpp, **lpp, *sp, *eob;
|
||||
u_char *msg;
|
||||
char **cpp = NULL, **lpp = NULL, *sp;
|
||||
char *msg;
|
||||
|
||||
dn = exp_dn;
|
||||
cp = comp_dn;
|
||||
@@ -191,7 +191,7 @@ dn_comp(exp_dn, comp_dn, length, dnptrs, lastdnptr)
|
||||
/*
|
||||
* Skip over a compressed domain name. Return the size or -1.
|
||||
*/
|
||||
dn_skipname(comp_dn, eom)
|
||||
int dn_skipname(comp_dn, eom)
|
||||
u_char *comp_dn, *eom;
|
||||
{
|
||||
register u_char *cp;
|
||||
@@ -222,7 +222,7 @@ dn_skipname(comp_dn, eom)
|
||||
* dnptrs is the pointer to the first name on the list,
|
||||
* not the pointer to the start of the message.
|
||||
*/
|
||||
static
|
||||
static int
|
||||
dn_find(exp_dn, msg, dnptrs, lastdnptr)
|
||||
u_char *exp_dn, *msg;
|
||||
u_char **dnptrs, **lastdnptr;
|
||||
@@ -234,7 +234,7 @@ dn_find(exp_dn, msg, dnptrs, lastdnptr)
|
||||
for (cpp = dnptrs; cpp < lastdnptr; cpp++) {
|
||||
dn = exp_dn;
|
||||
sp = cp = *cpp;
|
||||
while (n = *cp++) {
|
||||
while ((n = *cp++)) {
|
||||
/*
|
||||
* check for indirection
|
||||
*/
|
||||
@@ -308,18 +308,18 @@ _getlong(msgp)
|
||||
}
|
||||
|
||||
|
||||
putshort(s, msgp)
|
||||
void putshort(s, msgp)
|
||||
register u_short s;
|
||||
register u_char *msgp;
|
||||
register char *msgp;
|
||||
{
|
||||
|
||||
msgp[1] = s;
|
||||
msgp[0] = s >> 8;
|
||||
}
|
||||
|
||||
putlong(l, msgp)
|
||||
void putlong(l, msgp)
|
||||
register u_long l;
|
||||
register u_char *msgp;
|
||||
register char *msgp;
|
||||
{
|
||||
|
||||
msgp[3] = l;
|
||||
|
||||
Reference in New Issue
Block a user