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