From e8865ad8a07a7902494edd8f9c36a88930dc4450 Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Wed, 26 Dec 2001 17:57:57 +0000 Subject: [w3m-dev 02735] From: "OMAE, jun" --- ChangeLog | 8 +++++++- indep.c | 9 +++++---- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 90fd289..d59c0fe 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2001-12-27 "OMAE, jun" + + * [w3m-dev 02735] + * indep.c (bcopy): need (chat *) cast + * indep.c (bzero): use char * instead of void * + 2001-12-26 Fumitoshi UKAI * istream.h: #include deleted @@ -1620,4 +1626,4 @@ * release-0-2-1 * import w3m-0.2.1 -$Id: ChangeLog,v 1.181 2001/12/26 13:00:45 ukai Exp $ +$Id: ChangeLog,v 1.182 2001/12/26 17:57:57 ukai Exp $ diff --git a/indep.c b/indep.c index 60e5234..a0b2ee4 100644 --- a/indep.c +++ b/indep.c @@ -1,4 +1,4 @@ -/* $Id: indep.c,v 1.20 2001/12/25 16:19:29 ukai Exp $ */ +/* $Id: indep.c,v 1.21 2001/12/26 17:57:57 ukai Exp $ */ #include "fm.h" #include #include @@ -20,11 +20,11 @@ bcopy(const void *src, void *dest, int len) return; if (src < dest) { for (i = len - 1; i >= 0; i--) - dest[i] = src[i]; + ((char *)dest)[i] = ((const char *)src)[i]; } else { /* src > dest */ for (i = 0; i < len; i++) - dest[i] = src[i]; + ((char *)dest)[i] = ((const char *)src)[i]; } } @@ -32,8 +32,9 @@ void bzero(void *ptr, int len) { int i; + char *p = ptr; for (i = 0; i < len; i++) - *(ptr++) = 0; + *(p++) = 0; } #endif /* not HAVE_BCOPY */ -- cgit v1.2.3