Update.
authorUlrich Drepper <drepper@redhat.com>
Mon, 8 Sep 2003 07:04:48 +0000 (07:04 +0000)
committerUlrich Drepper <drepper@redhat.com>
Mon, 8 Sep 2003 07:04:48 +0000 (07:04 +0000)
2003-09-08  Ulrich Drepper  <drepper@redhat.com>

* libio/bug-ftell.c: Include <sys/types.h>.
(main): Mark cp as const.

ChangeLog
libio/bug-ftell.c

index 5608b20..9e54f10 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-09-08  Ulrich Drepper  <drepper@redhat.com>
+
+       * libio/bug-ftell.c: Include <sys/types.h>.
+       (main): Mark cp as const.
+
 2003-09-07  Jakub Jelinek  <jakub@redhat.com>
 
        * sysdeps/unix/sysv/linux/syscalls.list (fcntl): Remove.
index f7a9a77..7eb0f46 100644 (file)
@@ -1,6 +1,7 @@
 #include <locale.h>
 #include <stdio.h>
 #include <wchar.h>
+#include <sys/types.h>
 
 
 static int
@@ -27,7 +28,7 @@ do_test (void)
 
   rewind (fp);
 
-  wchar_t *cp;
+  const wchar_t *cp;
   unsigned int cnt;
   for (cp = L"hello", cnt = 1; *cp != L'\0'; ++cp, ++cnt)
     {