mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 23:04:20 +01:00
refs[t:2626] fix some void* type conversions
git-svn-id: file:///svn/toku/tokudb@20389 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
d009c784dc
commit
127f1f927b
1 changed files with 2 additions and 2 deletions
|
@ -1911,7 +1911,7 @@ static int64_t allocate_block (struct dbout *out)
|
|||
|
||||
static void putbuf_bytes (struct dbuf *dbuf, const void *bytes, int nbytes) {
|
||||
if (dbuf->off + nbytes > dbuf->buflen) {
|
||||
void *oldbuf = dbuf->buf;
|
||||
unsigned char *oldbuf = dbuf->buf;
|
||||
int oldbuflen = dbuf->buflen;
|
||||
dbuf->buflen += dbuf->off + nbytes;
|
||||
dbuf->buflen *= 2;
|
||||
|
@ -1944,7 +1944,7 @@ static void putbuf_int64 (struct dbuf *dbuf, unsigned long long v) {
|
|||
static void putbuf_int32_at(struct dbuf *dbuf, int off, int v) {
|
||||
const int nbytes = 4;
|
||||
if (off+nbytes > dbuf->buflen) {
|
||||
void *oldbuf = dbuf->buf;
|
||||
unsigned char *oldbuf = dbuf->buf;
|
||||
int oldbuflen = dbuf->buflen;
|
||||
dbuf->buflen += dbuf->off + nbytes;
|
||||
dbuf->buflen *= 2;
|
||||
|
|
Loading…
Add table
Reference in a new issue