* stdio-common/tst-fmemopen2.c (do_test): Add a cast.
authorRoland McGrath <roland@gnu.org>
Sun, 8 Jan 2006 08:24:11 +0000 (08:24 +0000)
committerRoland McGrath <roland@gnu.org>
Sun, 8 Jan 2006 08:24:11 +0000 (08:24 +0000)
* stdio-common/printf-parsemb.c (__find_specmb): Likewise.

* sysdeps/unix/sysv/linux/poll.c: Likewise.

ChangeLog
stdio-common/printf-parsemb.c
stdio-common/tst-fmemopen2.c
sysdeps/unix/sysv/linux/poll.c

index 1699975..9e07a40 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2006-01-08  Roland McGrath  <roland@redhat.com>
 
+       * stdio-common/tst-fmemopen2.c (do_test): Add a cast.
+       * stdio-common/printf-parsemb.c (__find_specmb): Likewise.
+
        * sysdeps/unix/sysv/linux/alpha/adjtime.c: Use <> instead of "" in
        #include for kernel-features.h.
        * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c: Likewise.
@@ -80,6 +83,7 @@
        * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
        * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
        * sysdeps/unix/sysv/linux/opendir.c: Likewise.
+       * sysdeps/unix/sysv/linux/poll.c: Likewise.
        * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c: Likewise.
        * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Likewise.
        * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Likewise.
index c55b970..2f21fc6 100644 (file)
@@ -1,5 +1,5 @@
 /* Helper functions for parsing printf format strings.
-   Copyright (C) 1995-2000, 2002, 2003, 2004 Free Software Foundation, Inc.
+   Copyright (C) 1995-2000,2002,2003,2004,2006 Free Software Foundation, Inc.
    This file is part of th GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -64,7 +64,8 @@ __find_specmb (const UCHAR_T *format, mbstate_t *ps)
 
       /* Remove any hints of a wrong encoding.  */
       ps->__count = 0;
-      if (! isascii (*format) && (len = __mbrlen (format, MB_CUR_MAX, ps)) > 0)
+      if (! isascii (*format)
+         && (len = __mbrlen ((const CHAR_T *) format, MB_CUR_MAX, ps)) > 0)
        format += len;
       else
        ++format;
index bcb136e..81beddd 100644 (file)
@@ -28,7 +28,7 @@ do_test (void)
   o = ftello (fp);
   if (o != 0)
     {
-      printf ("second ftello returned %ld, expected %zu\n", o, 0);
+      printf ("second ftello returned %ld, expected %zu\n", o, (off_t) 0);
       result = 1;
     }
   if (fseeko (fp, 0, SEEK_END) != 0)
index 4c48686..a745fbc 100644 (file)
@@ -1,5 +1,6 @@
 /* Poll system call, with emulation if it is not available.
-   Copyright (C) 1997,1998,1999,2000,2001,2002 Free Software Foundation, Inc.
+   Copyright (C) 1997,1998,1999,2000,2001,2002,2006
+       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
@@ -24,7 +25,7 @@
 #include <sys/syscall.h>
 #include <bp-checks.h>
 
-#include "kernel-features.h"
+#include <kernel-features.h>
 
 #if defined __NR_poll || __ASSUME_POLL_SYSCALL > 0