Changed all arithmetic operations on raw void pointers to properly use uint8_t pointers instead.
This commit is contained in:
Markus Makela
2014-09-29 13:07:30 +03:00
parent fa47bf760a
commit ea6a3f56d6
2 changed files with 5 additions and 4 deletions

View File

@ -87,7 +87,7 @@ SHARED_BUF *sbuf;
}
spinlock_init(&rval->gwbuf_lock);
rval->start = sbuf->data;
rval->end = rval->start + size;
rval->end = (void*)((uint8_t*)rval->start + size);
sbuf->refcount = 1;
rval->sbuf = sbuf;
rval->next = NULL;