w3m

Unnamed repository; edit this file to name it for gitweb.
git clone https://logand.com/git/w3m.git/
Log | Files | Refs | README

commit d2940728a5686db6ba0267e1aa0a7d8fdd9ebef2
parent 9ada8795cb5299032e2e8a467c59593337435946
Author: ukai <ukai>
Date:   Wed, 26 Dec 2001 17:57:57 +0000

[w3m-dev 02735]
From: "OMAE, jun" <jun-o@dai.meta.ne.jp>

Diffstat:
MChangeLog | 6++++++
Mindep.c | 7++++---
2 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -1,3 +1,9 @@ +2001-12-27 "OMAE, jun" <jun-o@dai.meta.ne.jp> + + * [w3m-dev 02735] + * indep.c (bcopy): need (chat *) cast + * indep.c (bzero): use char * instead of void * + 2001-12-26 Fumitoshi UKAI <ukai@debian.or.jp> * istream.h: #include <x509v3.h> deleted diff --git a/indep.c b/indep.c @@ -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 */