Skip to content

Commit

Permalink
remove an size_t-to-integer assignment. openbsd
Browse files Browse the repository at this point in the history
  • Loading branch information
itojun committed Feb 14, 2007
1 parent ac13f37 commit f361071
Showing 1 changed file with 5 additions and 17 deletions.
22 changes: 5 additions & 17 deletions kame/kame/libinet6/getaddrinfo.c
@@ -1,4 +1,4 @@
/* $KAME: getaddrinfo.c,v 1.221 2006/02/15 10:42:25 t-momose Exp $ */
/* $KAME: getaddrinfo.c,v 1.222 2007/02/14 10:24:29 itojun Exp $ */

/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
Expand Down Expand Up @@ -2112,11 +2112,8 @@ getanswer(answer, anslen, qname, qtype, pai)
}
#endif
if (!haveanswer) {
int nn;

canonname = bp;
nn = strlen(bp) + 1; /* for the \0 */
bp += nn;
bp += strlen(bp) + 1; /* for the \0 */
}

/* don't overwrite pai */
Expand Down Expand Up @@ -3184,11 +3181,8 @@ getanswer(answer, anslen, qname, qtype, pai)
}
#endif
if (!haveanswer) {
int nn;

canonname = bp;
nn = strlen(bp) + 1; /* for the \0 */
bp += nn;
bp += strlen(bp) + 1; /* for the \0 */
}

/* don't overwrite pai */
Expand Down Expand Up @@ -4163,11 +4157,8 @@ getanswer(answer, anslen, qname, qtype, pai)
}
#endif
if (!haveanswer) {
int nn;

canonname = bp;
nn = strlen(bp) + 1; /* for the \0 */
bp += nn;
bp += strlen(bp) + 1; /* for the \0 */
}

/* don't overwrite pai */
Expand Down Expand Up @@ -5360,11 +5351,8 @@ getanswer(answer, anslen, qname, qtype, pai)
}
#endif
if (!haveanswer) {
int nn;

canonname = bp;
nn = strlen(bp) + 1; /* for the \0 */
bp += nn;
bp += strlen(bp) + 1; /* for the \0 */
}

/* don't overwrite pai */
Expand Down

0 comments on commit f361071

Please sign in to comment.