r5142: fix compiler warning
authorStefan Metzmacher <metze@samba.org>
Mon, 31 Jan 2005 16:36:57 +0000 (16:36 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:09:27 +0000 (13:09 -0500)
metze

source/lib/talloc/testsuite.c

index 4a1074e045c6defab0b43a50affd78b208a4aa73..967874917d27b257793aa7f9ba028b35ce2858f2 100644 (file)
@@ -641,7 +641,7 @@ static BOOL test_type(void)
                return False;
        }
        talloc_set_type(el1, struct el2);
-       if (talloc_get_type(el1, struct el2) != el1) {
+       if (talloc_get_type(el1, struct el2) != (struct el2 *)el1) {
                printf("type set failed on el1 with el2\n");
                return False;
        }