patches/glibc/2.3.2/sscanf.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat Feb 24 11:00:05 2007 +0000 (2007-02-24)
changeset 1 eeea35fbf182
permissions -rw-r--r--
Add the full crosstool-NG sources to the new repository of its own.
You might just say: 'Yeah! crosstool-NG's got its own repo!".
Unfortunately, that's because the previous repo got damaged beyond repair and I had no backup.
That means I'm putting backups in place in the afternoon.
That also means we've lost history... :-(
yann@1
     1
2003-03-05  Roland McGrath  <roland@redhat.com>
yann@1
     2
yann@1
     3
	* stdio-common/sscanf.c: Use prototype defn with ... syntax.
yann@1
     4
	* libio/swscanf.c: Likewise.
yann@1
     5
	* libio/swprintf.c: Likewise.
yann@1
     6
yann@1
     7
===================================================================
yann@1
     8
RCS file: /cvs/glibc/libc/stdio-common/sscanf.c,v
yann@1
     9
retrieving revision 1.8
yann@1
    10
retrieving revision 1.9
yann@1
    11
diff -u -r1.8 -r1.9
yann@1
    12
--- libc/stdio-common/sscanf.c	2002/08/10 09:24:42	1.8
yann@1
    13
+++ libc/stdio-common/sscanf.c	2003/03/05 19:58:03	1.9
yann@1
    14
@@ -1,4 +1,4 @@
yann@1
    15
-/* Copyright (C) 1991,95,96,98,2002 Free Software Foundation, Inc.
yann@1
    16
+/* Copyright (C) 1991,1995,1996,1998,2002,2003 Free Software Foundation, Inc.
yann@1
    17
    This file is part of the GNU C Library.
yann@1
    18
 
yann@1
    19
    The GNU C Library is free software; you can redistribute it and/or
yann@1
    20
@@ -27,9 +27,7 @@
yann@1
    21
 /* Read formatted input from S, according to the format string FORMAT.  */
yann@1
    22
 /* VARARGS2 */
yann@1
    23
 int
yann@1
    24
-sscanf (s, format)
yann@1
    25
-     const char *s;
yann@1
    26
-     const char *format;
yann@1
    27
+sscanf (const char *s, const char *format, ...)
yann@1
    28
 {
yann@1
    29
   va_list arg;
yann@1
    30
   int done;
yann@1
    31
===================================================================
yann@1
    32
RCS file: /cvs/glibc/libc/libio/swprintf.c,v
yann@1
    33
retrieving revision 1.3
yann@1
    34
retrieving revision 1.4
yann@1
    35
diff -u -r1.3 -r1.4
yann@1
    36
--- libc/libio/swprintf.c	2001/07/06 04:55:32	1.3
yann@1
    37
+++ libc/libio/swprintf.c	2003/03/05 19:58:03	1.4
yann@1
    38
@@ -1,4 +1,5 @@
yann@1
    39
-/* Copyright (C) 1991,1995,1997,1998,1999,2000 Free Software Foundation, Inc.
yann@1
    40
+/* Copyright (C) 1991,1995,1997,1998,1999,2000,2003
yann@1
    41
+	Free Software Foundation, Inc.
yann@1
    42
    This file is part of the GNU C Library.
yann@1
    43
 
yann@1
    44
    The GNU C Library is free software; you can redistribute it and/or
yann@1
    45
@@ -22,10 +23,7 @@
yann@1
    46
 /* Write formatted output into S, according to the format string FORMAT.  */
yann@1
    47
 /* VARARGS3 */
yann@1
    48
 int
yann@1
    49
-swprintf (s, n, format)
yann@1
    50
-     wchar_t *s;
yann@1
    51
-     size_t n;
yann@1
    52
-     const wchar_t *format;
yann@1
    53
+swprintf (wchar_t *s, size_t n, const wchar_t *format, ...)
yann@1
    54
 {
yann@1
    55
   va_list arg;
yann@1
    56
   int done;
yann@1
    57
===================================================================
yann@1
    58
RCS file: /cvs/glibc/libc/libio/swscanf.c,v
yann@1
    59
retrieving revision 1.2
yann@1
    60
retrieving revision 1.3
yann@1
    61
diff -u -r1.2 -r1.3
yann@1
    62
--- libc/libio/swscanf.c	2001/07/06 04:55:32	1.2
yann@1
    63
+++ libc/libio/swscanf.c	2003/03/05 19:58:03	1.3
yann@1
    64
@@ -1,4 +1,4 @@
yann@1
    65
-/* Copyright (C) 1991, 1995, 1996, 1998, 1999 Free Software Foundation, Inc.
yann@1
    66
+/* Copyright (C) 1991,1995,1996,1998,1999,2003 Free Software Foundation, Inc.
yann@1
    67
    This file is part of the GNU C Library.
yann@1
    68
 
yann@1
    69
    The GNU C Library is free software; you can redistribute it and/or
yann@1
    70
@@ -22,9 +22,7 @@
yann@1
    71
 /* Read formatted input from S, according to the format string FORMAT.  */
yann@1
    72
 /* VARARGS2 */
yann@1
    73
 int
yann@1
    74
-swscanf (s, format)
yann@1
    75
-     const wchar_t *s;
yann@1
    76
-     const wchar_t *format;
yann@1
    77
+swscanf (const wchar_t *s, const wchar_t *format, ...)
yann@1
    78
 {
yann@1
    79
   va_list arg;
yann@1
    80
   int done;