s3: Fix incompatible type warnings
authorTim Prouty <tprouty@samba.org>
Sun, 1 Mar 2009 21:58:46 +0000 (13:58 -0800)
committerTim Prouty <tprouty@samba.org>
Mon, 2 Mar 2009 00:40:17 +0000 (16:40 -0800)
source3/lib/util_reg_api.c
source3/libgpo/gpo_ini.c
source3/rpc_server/srv_eventlog_lib.c

index 8f28e9c282f2cb52e680bc5a8aa01aa5564c0bd5..9313193f10e3c75ca2f52df52017286e30bb472f 100644 (file)
@@ -92,7 +92,7 @@ WERROR registry_pull_value(TALLOC_CTX *mem_ctx,
                }
 
                if (!convert_string_talloc(value, CH_UTF16LE, CH_UNIX, tmp,
-                                          length+2, &value->v.sz.str,
+                                          length+2, (void **)&value->v.sz.str,
                                           &value->v.sz.len, False)) {
                        SAFE_FREE(tmp);
                        err = WERR_INVALID_PARAM;
index aa8f7c77700a2fd6b27e8ef81f029d14c4920c6c..edca85530bf57baf88db253aed657cc164eff8e9 100644 (file)
@@ -83,7 +83,7 @@ static NTSTATUS convert_file_from_ucs2(TALLOC_CTX *mem_ctx,
        }
 
        if (!convert_string_talloc(mem_ctx, CH_UTF16LE, CH_UNIX, data_in, n,
-                                  &data_out, &converted_size, False))
+                                  (void **)&data_out, &converted_size, False))
        {
                status = NT_STATUS_INVALID_BUFFER_SIZE;
                goto out;
index edd1cfacb829a1fe9638a646656a87b852cccd2d..f83c4fc3b83fa868cd5a2a101b771c9873cb060d 100644 (file)
@@ -936,7 +936,7 @@ NTSTATUS evlog_tdb_entry_to_evt_entry(TALLOC_CTX *mem_ctx,
                size_t len;
                if (!convert_string_talloc(mem_ctx, CH_UTF16, CH_UNIX,
                                           t->sid.data, t->sid.length,
-                                          &sid_str, &len, false)) {
+                                          (void **)&sid_str, &len, false)) {
                        return NT_STATUS_INVALID_SID;
                }
                if (len > 0) {