mirror of
https://github.com/json-c/json-c.git
synced 2026-04-07 14:29:06 +08:00
Add const correctness to public interfaces
Gerard Krol, g dot c dot krol at student dot tudelft dot nl Update version number to 0.9 git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@27 327403b1-1117-474d-bef2-5cb71233fd97
This commit is contained in:
@@ -40,7 +40,7 @@ struct printbuf* printbuf_new()
|
||||
}
|
||||
|
||||
|
||||
int printbuf_memappend(struct printbuf *p, char *buf, int size)
|
||||
int printbuf_memappend(struct printbuf *p, const char *buf, int size)
|
||||
{
|
||||
char *t;
|
||||
if(p->size - p->bpos <= size) {
|
||||
|
||||
Reference in New Issue
Block a user