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/registry | |
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/registry')
-rw-r--r-- | source3/registry/reg_format.c | 4 | ||||
-rw-r--r-- | source3/registry/reg_parse_internal.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/source3/registry/reg_format.c b/source3/registry/reg_format.c index 946380d676..f2b0846b11 100644 --- a/source3/registry/reg_format.c +++ b/source3/registry/reg_format.c @@ -276,7 +276,7 @@ static int reg_format_value_hex(struct reg_format* f, const char* name, uint32_t cpl += n; - for (ptr=data; len>1; len--,ptr++) { + for (ptr=(const unsigned char *)data; len>1; len--,ptr++) { n = cbuf_printf(line, "%02x,", (unsigned)(*ptr)); if (n < 0) { return n; @@ -641,7 +641,7 @@ struct reg_format_file_opt { const char* sep; }; -struct reg_format_file_opt reg_format_file_opt(void* mem_ctx, const char* opt) +static struct reg_format_file_opt reg_format_file_opt(void* mem_ctx, const char* opt) { static const struct reg_format_file_opt REG4 = { .head = "REGEDIT4", diff --git a/source3/registry/reg_parse_internal.c b/source3/registry/reg_parse_internal.c index 995bc96275..64c4e06622 100644 --- a/source3/registry/reg_parse_internal.c +++ b/source3/registry/reg_parse_internal.c @@ -44,7 +44,7 @@ size_t iconvert_talloc(const void* ctx, if (dst == NULL) { /* dstlen = 2*srclen + 2; */ dstlen = srclen; - dst = talloc_size(ctx, dstlen); + dst = (char *)talloc_size(ctx, dstlen); if (dst == NULL) { DEBUG(0,("iconver_talloc no mem\n")); return -1; |