about summary refs log tree commit diff
path: root/resolv
diff options
context:
space:
mode:
Diffstat (limited to 'resolv')
-rw-r--r--resolv/res_hconf.c4
-rw-r--r--resolv/tst-aton.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/resolv/res_hconf.c b/resolv/res_hconf.c
index 8da2727a79..132dda7599 100644
--- a/resolv/res_hconf.c
+++ b/resolv/res_hconf.c
@@ -112,7 +112,7 @@ arg_service_list (const char *fname, int line_num, const char *args,
   enum Name_Service service;
   const char *start;
   size_t len;
-  int i;
+  size_t i;
   static struct
   {
     const char * name;
@@ -339,7 +339,7 @@ parse_line (const char *fname, int line_num, const char *str)
   const char *start;
   struct cmd *c = 0;
   size_t len;
-  int i;
+  size_t i;
 
   str = skip_ws (str);
 
diff --git a/resolv/tst-aton.c b/resolv/tst-aton.c
index 3469b19260..6cb5960496 100644
--- a/resolv/tst-aton.c
+++ b/resolv/tst-aton.c
@@ -39,7 +39,7 @@ static struct tests
   { "1.2.256.4", 0, 0 },
   { "1.2.3.0x100", 0, 0 },
   { "323543357756889", 0, 0 },
-  { "10.1.2.3.4", 0, 0},  
+  { "10.1.2.3.4", 0, 0},
 };
 
 
@@ -47,13 +47,13 @@ int
 main (int argc, char *argv[])
 {
   int result = 0;
-  int cnt;
+  size_t cnt;
 
   for (cnt = 0; cnt < sizeof (tests) / sizeof (tests[0]); ++cnt)
     {
       struct in_addr addr;
 
-      if (inet_aton (tests[cnt].input, &addr) != tests[cnt].valid)
+      if ((int) inet_aton (tests[cnt].input, &addr) != tests[cnt].valid)
 	{
 	  if (tests[cnt].valid)
 	    printf ("\"%s\" not seen as valid IP address\n", tests[cnt].input);