From: Hallvard Furuseth Date: Mon, 18 Jul 2005 05:58:43 +0000 (+0000) Subject: Fix cast in BDB_ID2DISK(): unsigned char *_p ... = (char *)...; X-Git-Tag: OPENLDAP_AC_BP~367 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c2b65937feb2f02f1e289f40e179d295a3f211ed;p=openldap Fix cast in BDB_ID2DISK(): unsigned char *_p ... = (char *)...; --- diff --git a/servers/slapd/back-bdb/back-bdb.h b/servers/slapd/back-bdb/back-bdb.h index d6e9ecc20d..10cc3e349f 100644 --- a/servers/slapd/back-bdb/back-bdb.h +++ b/servers/slapd/back-bdb/back-bdb.h @@ -265,7 +265,7 @@ struct bdb_op_info { /* Copy an ID "src" to pointer "dst" in big-endian byte order */ #define BDB_ID2DISK( src, dst ) \ do { int i0; ID tmp; unsigned char *_p; \ - tmp = (src); _p = (char *)(dst); \ + tmp = (src); _p = (unsigned char *)(dst); \ for ( i0=sizeof(ID)-1; i0>=0; i0-- ) { \ _p[i0] = tmp & 0xff; tmp >>= 8; \ } \