From fe4576dff0dd949d87a099afc6b66e4763537fdd Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Wed, 22 Sep 2010 12:40:42 -0700 Subject: s3-registry: fix some c++ build warnings. Guenther --- source3/lib/cbuf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/lib') 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 */ -- cgit