mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-25 12:11:10 +00:00
* stdio-common/tst-fmemopen2.c (do_test): Add a cast.
* stdio-common/printf-parsemb.c (__find_specmb): Likewise. * sysdeps/unix/sysv/linux/poll.c: Likewise.
This commit is contained in:
parent
6ddd37a4b3
commit
7b1b6d57d0
@ -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.
|
||||
|
@ -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;
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user