summaryrefslogtreecommitdiff
path: root/source3/registry/reg_format.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-09-22 12:40:42 -0700
committerGünther Deschner <gd@samba.org>2010-09-22 12:57:34 -0700
commitfe4576dff0dd949d87a099afc6b66e4763537fdd (patch)
treeda186cedee3a8568149eb9cf822ea5ceb6f25781 /source3/registry/reg_format.c
parent314dc23ecfb5fc014f9c2ef70bd508eb837632b0 (diff)
downloadsamba-fe4576dff0dd949d87a099afc6b66e4763537fdd.tar.gz
samba-fe4576dff0dd949d87a099afc6b66e4763537fdd.tar.bz2
samba-fe4576dff0dd949d87a099afc6b66e4763537fdd.zip
s3-registry: fix some c++ build warnings.
Guenther
Diffstat (limited to 'source3/registry/reg_format.c')
-rw-r--r--source3/registry/reg_format.c4
1 files changed, 2 insertions, 2 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",