diff options
author | Jeremy Allison <jra@samba.org> | 2005-10-18 03:24:00 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:05:02 -0500 |
commit | d720867a788c735e56d53d63265255830ec21208 (patch) | |
tree | 52df7c4ee2096060f3c10d9de464abc40cfbf23b /source/registry/reg_perfcount.c | |
parent | 47b626a8f72629fd1bbabf35b68e24d202df2555 (diff) | |
download | samba-d720867a788c735e56d53d63265255830ec21208.tar.gz samba-d720867a788c735e56d53d63265255830ec21208.tar.xz samba-d720867a788c735e56d53d63265255830ec21208.zip |
r11137: Compile with only 2 warnings (I'm still working on that code) on a gcc4
x86_64 box.
Jeremy.
Diffstat (limited to 'source/registry/reg_perfcount.c')
-rw-r--r-- | source/registry/reg_perfcount.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/registry/reg_perfcount.c b/source/registry/reg_perfcount.c index 609f86da6cb..fe8b355b958 100644 --- a/source/registry/reg_perfcount.c +++ b/source/registry/reg_perfcount.c @@ -872,10 +872,10 @@ static uint32 _reg_perfcount_perf_data_block_fixup(PERF_DATA_BLOCK *block, prs_s counter_data->ByteLength = counter->CounterOffset + counter->CounterSize + sizeof(counter_data->ByteLength); temp = TALLOC_REALLOC_ARRAY(ps->mem_ctx, temp, - uint8, + char, counter_data->ByteLength- sizeof(counter_data->ByteLength)); memset(temp, 0, counter_data->ByteLength - sizeof(counter_data->ByteLength)); - src_addr = counter_data->data; + src_addr = (char *)counter_data->data; for(i = 0; i < object[obj].NumCounters; i++) { counter = &(object[obj].counters[i]); |