diff options
author | Günther Deschner <gd@samba.org> | 2010-09-22 12:40:42 -0700 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2010-09-22 12:57:34 -0700 |
commit | fe4576dff0dd949d87a099afc6b66e4763537fdd (patch) | |
tree | da186cedee3a8568149eb9cf822ea5ceb6f25781 /source3/lib | |
parent | 314dc23ecfb5fc014f9c2ef70bd508eb837632b0 (diff) | |
download | samba-fe4576dff0dd949d87a099afc6b66e4763537fdd.tar.gz samba-fe4576dff0dd949d87a099afc6b66e4763537fdd.tar.bz2 samba-fe4576dff0dd949d87a099afc6b66e4763537fdd.zip |
s3-registry: fix some c++ build warnings.
Guenther
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/cbuf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/cbuf.c b/source3/lib/cbuf.c index 85d1c14d45..62a705c695 100644 --- a/source3/lib/cbuf.c +++ b/source3/lib/cbuf.c @@ -51,7 +51,7 @@ cbuf* cbuf_new(const void* ctx) if (s == NULL) return NULL; s->size = 32; - s->buf = talloc_size(s, s->size); + s->buf = (char *)talloc_size(s, s->size); if (s->size && (s->buf == NULL)) { talloc_free(s); return NULL; @@ -66,7 +66,7 @@ cbuf* cbuf_copy(const cbuf* b) return NULL; } - s->buf = talloc_memdup(s, b->buf, b->size); /* only up to pos? */ + s->buf = (char *)talloc_memdup(s, b->buf, b->size); /* only up to pos? */ /* XXX shallow did not work, because realloc */ /* fails with multiple references */ |