Use size_t for strlen results

This commit is contained in:
Andreas Schwab 2011-07-20 11:40:37 -04:00 committed by Ulrich Drepper
parent 5551a7b6aa
commit 28b59fca7a
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2011-07-20 Andreas Schwab <schwab@redhat.com>
* resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
strlen results.
2011-07-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> 2011-07-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h

View File

@ -543,7 +543,7 @@ __libc_res_nquerydomain(res_state statp,
{ {
char nbuf[MAXDNAME]; char nbuf[MAXDNAME];
const char *longname = nbuf; const char *longname = nbuf;
int n, d; size_t n, d;
#ifdef DEBUG #ifdef DEBUG
if (statp->options & RES_DEBUG) if (statp->options & RES_DEBUG)