From b47516084bfba8471da0bdb58641c0d27e6e48b5 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Mon, 29 Mar 1999 02:31:34 +0000 Subject: Updated. 1999-03-27 Andreas Jaeger * malloc/obstack.h (obstack_free): Explicitly convert __obj to char * to avoid C++ warning. Patch by yasushi@cs.washington.edu [PR libc/1035]. 1999-03-29 Andreas Jaeger * manual/filesys.texi (Temporary Files): mktemp and mkstemp are declared in stdlib.h, correct return value of mkstemp. Reported by Andries Brouwer . * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHDRD_FC*): New defines from Linux 2.2.5. * misc/regexp.h (compile): Cast some pointers to (char *) to avoid C++ warning. --- misc/regexp.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'misc/regexp.h') diff --git a/misc/regexp.h b/misc/regexp.h index 4e3571043c..fc60d3ca51 100644 --- a/misc/regexp.h +++ b/misc/regexp.h @@ -142,21 +142,21 @@ compile (char *__restrict instring, char *__restrict expbuf, if (__current_size + 1 >= __input_size) { size_t __new_size = __input_size ? 2 * __input_size : 128; - char *__new_room = alloca (__new_size); + char *__new_room = (char *) alloca (__new_size); /* See whether we can use the old buffer. */ if (__new_room + __new_size == __input_buffer) { __input_size += __new_size; - __input_buffer = memcpy (__new_room, __input_buffer, - __current_size); + __input_buffer = (char *) memcpy (__new_room, __input_buffer, + __current_size); } else if (__input_buffer + __input_size == __new_room) __input_size += __new_size; else { __input_size = __new_size; - __input_buffer = memcpy (__new_room, __input_buffer, - __current_size); + __input_buffer = (char *) memcpy (__new_room, __input_buffer, + __current_size); } } __input_buffer[__current_size++] = __ch; -- cgit v1.2.1