[dank] Modified very slightly to apply to 2.2.5. 2003-03-05 Roland McGrath * stdio-common/sscanf.c: Use prototype defn with ... syntax. * libio/swscanf.c: Likewise. * libio/swprintf.c: Likewise. =================================================================== RCS file: /cvs/glibc/libc/stdio-common/sscanf.c,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- libc/stdio-common/sscanf.c 2002/08/10 09:24:42 1.8 +++ libc/stdio-common/sscanf.c 2003/03/05 19:58:03 1.9 @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1995, 1996, 1998 Free Software Foundation, Inc. +/* Copyright (C) 1991,1995,1996,1998,2002,2003 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 @@ -27,9 +27,7 @@ /* Read formatted input from S, according to the format string FORMAT. */ /* VARARGS2 */ int -sscanf (s, format) - const char *s; - const char *format; +sscanf (const char *s, const char *format, ...) { va_list arg; int done; =================================================================== RCS file: /cvs/glibc/libc/libio/swprintf.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- libc/libio/swprintf.c 2001/07/06 04:55:32 1.3 +++ libc/libio/swprintf.c 2003/03/05 19:58:03 1.4 @@ -1,4 +1,5 @@ -/* Copyright (C) 1991,1995,1997,1998,1999,2000 Free Software Foundation, Inc. +/* Copyright (C) 1991,1995,1997,1998,1999,2000,2003 + 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 @@ -22,10 +23,7 @@ /* Write formatted output into S, according to the format string FORMAT. */ /* VARARGS3 */ int -swprintf (s, n, format) - wchar_t *s; - size_t n; - const wchar_t *format; +swprintf (wchar_t *s, size_t n, const wchar_t *format, ...) { va_list arg; int done; =================================================================== RCS file: /cvs/glibc/libc/libio/swscanf.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- libc/libio/swscanf.c 2001/07/06 04:55:32 1.2 +++ libc/libio/swscanf.c 2003/03/05 19:58:03 1.3 @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1995, 1996, 1998, 1999 Free Software Foundation, Inc. +/* Copyright (C) 1991,1995,1996,1998,1999,2003 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 @@ -22,9 +22,7 @@ /* Read formatted input from S, according to the format string FORMAT. */ /* VARARGS2 */ int -swscanf (s, format) - const wchar_t *s; - const wchar_t *format; +swscanf (const wchar_t *s, const wchar_t *format, ...) { va_list arg; int done;