aboutsummaryrefslogtreecommitdiff
path: root/libiberty/memset.c
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2005-03-28 05:07:08 +0000
committerDJ Delorie <dj@redhat.com>2005-03-28 05:07:08 +0000
commit1e45deed6a87c05c9e669e3cdfdda47cbfa9531d (patch)
treee2c1bba3c03c5917c8e70792a921dfc6b6b5eef9 /libiberty/memset.c
parent49b1fae4309ab5b9833f0af388483c2b6b4b3d50 (diff)
downloadgdb-1e45deed6a87c05c9e669e3cdfdda47cbfa9531d.zip
gdb-1e45deed6a87c05c9e669e3cdfdda47cbfa9531d.tar.gz
gdb-1e45deed6a87c05c9e669e3cdfdda47cbfa9531d.tar.bz2
merge from gcc
Diffstat (limited to 'libiberty/memset.c')
-rw-r--r--libiberty/memset.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/libiberty/memset.c b/libiberty/memset.c
index 5119f85..1951ad6 100644
--- a/libiberty/memset.c
+++ b/libiberty/memset.c
@@ -13,17 +13,10 @@ Sets the first @var{count} bytes of @var{s} to the constant byte
*/
#include <ansidecl.h>
-#ifdef ANSI_PROTOTYPES
#include <stddef.h>
-#else
-#define size_t unsigned long
-#endif
PTR
-memset (dest, val, len)
- PTR dest;
- register int val;
- register size_t len;
+memset (PTR dest, register int val, register size_t len)
{
register unsigned char *ptr = (unsigned char*)dest;
while (len-- > 0)