aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@redhat.com>2011-07-20 11:40:37 -0400
committerUlrich Drepper <drepper@gmail.com>2011-07-20 11:40:37 -0400
commit28b59fca7ae3cfc2d57e0007aaa3793d4b775e97 (patch)
treebe1fce76d18dac6a9b1181487e2387dd67ed8da2
parent5551a7b6aa00e6bc2bf6a0daa98a01e7fd725ba9 (diff)
downloadglibc-28b59fca7ae3cfc2d57e0007aaa3793d4b775e97.tar
glibc-28b59fca7ae3cfc2d57e0007aaa3793d4b775e97.tar.gz
glibc-28b59fca7ae3cfc2d57e0007aaa3793d4b775e97.tar.bz2
glibc-28b59fca7ae3cfc2d57e0007aaa3793d4b775e97.zip
Use size_t for strlen results
-rw-r--r--ChangeLog5
-rw-r--r--resolv/res_query.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 69f134d0fa..b453585a90 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
* sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
diff --git a/resolv/res_query.c b/resolv/res_query.c
index 26daf0d87b..2f7cfaa4b7 100644
--- a/resolv/res_query.c
+++ b/resolv/res_query.c
@@ -543,7 +543,7 @@ __libc_res_nquerydomain(res_state statp,
{
char nbuf[MAXDNAME];
const char *longname = nbuf;
- int n, d;
+ size_t n, d;
#ifdef DEBUG
if (statp->options & RES_DEBUG)