patches/glibc/2.3.2/sscanf.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun Jul 01 19:04:20 2007 +0000 (2007-07-01)
changeset 182 223c84ec2d90
permissions -rw-r--r--
Merge the build system to trunk: ct-ng is now installable:
- ./configure --prefix=/some/place
- make
- make install
- export PATH="${PATH}:/some/place/bin"
- ct-ng <action>
     1 2003-03-05  Roland McGrath  <roland@redhat.com>
     2 
     3 	* stdio-common/sscanf.c: Use prototype defn with ... syntax.
     4 	* libio/swscanf.c: Likewise.
     5 	* libio/swprintf.c: Likewise.
     6 
     7 ===================================================================
     8 RCS file: /cvs/glibc/libc/stdio-common/sscanf.c,v
     9 retrieving revision 1.8
    10 retrieving revision 1.9
    11 diff -u -r1.8 -r1.9
    12 --- libc/stdio-common/sscanf.c	2002/08/10 09:24:42	1.8
    13 +++ libc/stdio-common/sscanf.c	2003/03/05 19:58:03	1.9
    14 @@ -1,4 +1,4 @@
    15 -/* Copyright (C) 1991,95,96,98,2002 Free Software Foundation, Inc.
    16 +/* Copyright (C) 1991,1995,1996,1998,2002,2003 Free Software Foundation, Inc.
    17     This file is part of the GNU C Library.
    18  
    19     The GNU C Library is free software; you can redistribute it and/or
    20 @@ -27,9 +27,7 @@
    21  /* Read formatted input from S, according to the format string FORMAT.  */
    22  /* VARARGS2 */
    23  int
    24 -sscanf (s, format)
    25 -     const char *s;
    26 -     const char *format;
    27 +sscanf (const char *s, const char *format, ...)
    28  {
    29    va_list arg;
    30    int done;
    31 ===================================================================
    32 RCS file: /cvs/glibc/libc/libio/swprintf.c,v
    33 retrieving revision 1.3
    34 retrieving revision 1.4
    35 diff -u -r1.3 -r1.4
    36 --- libc/libio/swprintf.c	2001/07/06 04:55:32	1.3
    37 +++ libc/libio/swprintf.c	2003/03/05 19:58:03	1.4
    38 @@ -1,4 +1,5 @@
    39 -/* Copyright (C) 1991,1995,1997,1998,1999,2000 Free Software Foundation, Inc.
    40 +/* Copyright (C) 1991,1995,1997,1998,1999,2000,2003
    41 +	Free Software Foundation, Inc.
    42     This file is part of the GNU C Library.
    43  
    44     The GNU C Library is free software; you can redistribute it and/or
    45 @@ -22,10 +23,7 @@
    46  /* Write formatted output into S, according to the format string FORMAT.  */
    47  /* VARARGS3 */
    48  int
    49 -swprintf (s, n, format)
    50 -     wchar_t *s;
    51 -     size_t n;
    52 -     const wchar_t *format;
    53 +swprintf (wchar_t *s, size_t n, const wchar_t *format, ...)
    54  {
    55    va_list arg;
    56    int done;
    57 ===================================================================
    58 RCS file: /cvs/glibc/libc/libio/swscanf.c,v
    59 retrieving revision 1.2
    60 retrieving revision 1.3
    61 diff -u -r1.2 -r1.3
    62 --- libc/libio/swscanf.c	2001/07/06 04:55:32	1.2
    63 +++ libc/libio/swscanf.c	2003/03/05 19:58:03	1.3
    64 @@ -1,4 +1,4 @@
    65 -/* Copyright (C) 1991, 1995, 1996, 1998, 1999 Free Software Foundation, Inc.
    66 +/* Copyright (C) 1991,1995,1996,1998,1999,2003 Free Software Foundation, Inc.
    67     This file is part of the GNU C Library.
    68  
    69     The GNU C Library is free software; you can redistribute it and/or
    70 @@ -22,9 +22,7 @@
    71  /* Read formatted input from S, according to the format string FORMAT.  */
    72  /* VARARGS2 */
    73  int
    74 -swscanf (s, format)
    75 -     const wchar_t *s;
    76 -     const wchar_t *format;
    77 +swscanf (const wchar_t *s, const wchar_t *format, ...)
    78  {
    79    va_list arg;
    80    int done;