X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=json_gssapi%2Ftest%2FGSSCreateSecContextTest.cpp;h=a0752b4514db6e4aa503841a1f07f64f3ab3535a;hb=aae24ecd554d734f22d46d47a6eb99a3e43f1882;hp=843c58155aada04602cfdaa5b7134a5ded884036;hpb=115e2ffa63b2c0a90ec30b172e45654daa8fcc0f;p=gssweb.git diff --git a/json_gssapi/test/GSSCreateSecContextTest.cpp b/json_gssapi/test/GSSCreateSecContextTest.cpp index 843c581..a0752b4 100644 --- a/json_gssapi/test/GSSCreateSecContextTest.cpp +++ b/json_gssapi/test/GSSCreateSecContextTest.cpp @@ -86,11 +86,11 @@ void GSSCreateSecContextTest::testConstructor() { GSSInitSecContext cmd = GSSInitSecContext(); - void *cmdFn; - void *GSSFn; + init_sec_context_type cmdFn; + init_sec_context_type GSSFn; cmdFn = cmd.getGSSFunction(); - GSSFn = (void *)&gss_init_sec_context; + GSSFn = &gss_init_sec_context; CPPUNIT_ASSERT_MESSAGE( "The default constructor for GSSCreateSecContextCommand should assign the function gss_init_sec_context", cmdFn == GSSFn); @@ -152,7 +152,7 @@ void GSSCreateSecContextTest::testConstructorWithJSONObject() GSSInitSecContext cmd = GSSInitSecContext( &json, - (void *)&mock_init_sec + &mock_init_sec ); const char *from_cmd = cmd.getTargetDisplayName(); @@ -193,7 +193,7 @@ GSSCreateSecContextTest::testEmptyCall() { gss_ctx_id_t expectedResult, expectedArgument; - GSSInitSecContext cmd ((void *)&mock_init_sec); + GSSInitSecContext cmd (&mock_init_sec); /* Set expectations on what the GSS function will be called with */ cmd.time_req = rand() % 1024; @@ -309,7 +309,7 @@ GSSCreateSecContextTest::testEmptyCall() void GSSCreateSecContextTest::testJSONMarshal() { /* Variables */ - GSSInitSecContext cmd ((void *)&mock_init_sec); + GSSInitSecContext cmd (&mock_init_sec); JSONObject *result; GSSContextCache *cache = GSSContextCache::instance(); GSSContext context;