Make gwbuf_alloc_and_load const correct.
This commit is contained in:
@ -143,7 +143,7 @@ retblock:
|
||||
* be allocated.
|
||||
*/
|
||||
GWBUF *
|
||||
gwbuf_alloc_and_load(unsigned int size, void *data)
|
||||
gwbuf_alloc_and_load(unsigned int size, const void *data)
|
||||
{
|
||||
GWBUF *rval;
|
||||
if ((rval = gwbuf_alloc(size)) != NULL)
|
||||
|
@ -183,7 +183,7 @@ typedef struct gwbuf
|
||||
* Function prototypes for the API to maniplate the buffers
|
||||
*/
|
||||
extern GWBUF *gwbuf_alloc(unsigned int size);
|
||||
extern GWBUF *gwbuf_alloc_and_load(unsigned int size, void *data);
|
||||
extern GWBUF *gwbuf_alloc_and_load(unsigned int size, const void *data);
|
||||
extern void gwbuf_free(GWBUF *buf);
|
||||
extern GWBUF *gwbuf_clone(GWBUF *buf);
|
||||
extern GWBUF *gwbuf_append(GWBUF *head, GWBUF *tail);
|
||||
|
Reference in New Issue
Block a user