about summary refs log tree commit diff
path: root/posix
diff options
context:
space:
mode:
Diffstat (limited to 'posix')
-rw-r--r--posix/tst-getaddrinfo.c5
-rw-r--r--posix/tst-mmap.c4
2 files changed, 5 insertions, 4 deletions
diff --git a/posix/tst-getaddrinfo.c b/posix/tst-getaddrinfo.c
index 9300cc6740..565621ed9e 100644
--- a/posix/tst-getaddrinfo.c
+++ b/posix/tst-getaddrinfo.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
+/* Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -28,7 +28,8 @@ do_test (void)
 {
   const int family[2] = { AF_INET, AF_INET6 };
   int result = 0;
-  int gaierr, index;
+  int gaierr;
+  size_t index;
   struct addrinfo hints, *ai, *aitop;
 
   for (index = 0; index < sizeof (family) / sizeof (family[0]); ++index)
diff --git a/posix/tst-mmap.c b/posix/tst-mmap.c
index 7a57366903..e4db364301 100644
--- a/posix/tst-mmap.c
+++ b/posix/tst-mmap.c
@@ -11,10 +11,10 @@ main (void)
 {
   int result = 0;
   FILE *fp;
-  int c;
+  size_t c;
   char buf[1000];
   int fd;
-  char *ptr;
+  unsigned char *ptr;
   size_t ps = sysconf (_SC_PAGESIZE);
   void *mem;