prototypes patch
Andreas Jaeger
aj@suse.de
Tue Feb 6 02:37:00 GMT 2001
Compiling glibc I noticed some warnings and corrected them with the
appended patch. I'll commit this now
Andreas
2001-02-06 Andreas Jaeger <aj@suse.de>
* elf/firstobj.c: Add prototype.
* posix/regex.c (convert_mbs_to_wcs): Make static, add prototype
(truncate_wchar): Likewise.
============================================================
Index: elf/firstobj.c
--- elf/firstobj.c 2001/02/02 06:53:32 1.1
+++ elf/firstobj.c 2001/02/06 10:31:26
@@ -1,5 +1,7 @@
#include <errno.h>
+extern int foo (void);
+
int
foo (void)
{
============================================================
Index: posix/regex.c
--- posix/regex.c 2001/02/02 08:46:45 1.85
+++ posix/regex.c 2001/02/06 10:31:28
@@ -1158,7 +1158,11 @@
This assume invalid multibyte sequences as binary data.
We assume offset_buffer and is_binary is already allocated
enough space. */
-size_t
+
+static size_t convert_mbs_to_wcs (CHAR_TYPE *dest, const unsigned char* src,
+ size_t len, int *offset_buffer,
+ int *is_binary);
+static size_t
convert_mbs_to_wcs (dest, src, len, offset_buffer, is_binary)
CHAR_TYPE *dest;
const unsigned char* src;
@@ -4525,8 +4529,10 @@
#ifdef MBS_SUPPORT
/* local function for re_compile_fastmap.
truncate wchar_t character to char. */
-unsigned char
-truncate_wchar(c)
+static unsigned char truncate_wchar (CHAR_TYPE c);
+
+static unsigned char
+truncate_wchar (c)
CHAR_TYPE c;
{
unsigned char buf[MB_LEN_MAX];
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj
More information about the Libc-hacker
mailing list