aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-09-08 07:04:48 +0000
committerUlrich Drepper <drepper@redhat.com>2003-09-08 07:04:48 +0000
commit65b0b4192aa2fffa77c8ee8aeb3993eaf4b969ee (patch)
treedcf46ff56f44817326ec05dfa707827a53fbea9c
parent1ece20b462001f7ef96d72ebb9488c1cb2655392 (diff)
downloadglibc-65b0b4192aa2fffa77c8ee8aeb3993eaf4b969ee.tar
glibc-65b0b4192aa2fffa77c8ee8aeb3993eaf4b969ee.tar.gz
glibc-65b0b4192aa2fffa77c8ee8aeb3993eaf4b969ee.tar.bz2
glibc-65b0b4192aa2fffa77c8ee8aeb3993eaf4b969ee.zip
Update.
2003-09-08 Ulrich Drepper <drepper@redhat.com> * libio/bug-ftell.c: Include <sys/types.h>. (main): Mark cp as const.
-rw-r--r--ChangeLog5
-rw-r--r--libio/bug-ftell.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 5608b200b7..9e54f10ebc 100644
--- 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.
diff --git a/libio/bug-ftell.c b/libio/bug-ftell.c
index f7a9a776a2..7eb0f46810 100644
--- a/libio/bug-ftell.c
+++ b/libio/bug-ftell.c
@@ -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)
{