r17363: Some C++ warnings
[idra/samba.git] / source3 / torture / pdbtest.c
index e1a35b79127a126a3a9c27753b9b28ec929bdb76..8b15f9629b97bf7fea938e0073276a1f18bdcb85 100644 (file)
@@ -291,9 +291,9 @@ int main(int argc, char **argv)
 
        pdb_get_account_policy(AP_PASSWORD_HISTORY, &history);
        if (history * PW_HISTORY_ENTRY_LEN < NT_HASH_LEN) {
-               buf = TALLOC(ctx, NT_HASH_LEN);
+               buf = (uint8 *)TALLOC(ctx, NT_HASH_LEN);
        } else {
-               buf = TALLOC(ctx, history * PW_HISTORY_ENTRY_LEN);
+               buf = (uint8 *)TALLOC(ctx, history * PW_HISTORY_ENTRY_LEN);
        }
 
        /* Generate some random hashes */