s4:torture/rpc: remove compiler warnings in ntsvcs.c
authorStefan Metzmacher <metze@samba.org>
Tue, 14 Jan 2014 15:37:36 +0000 (16:37 +0100)
committerGünther Deschner <gd@samba.org>
Thu, 16 Jan 2014 15:22:52 +0000 (16:22 +0100)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
source4/torture/rpc/ntsvcs.c

index c1418e3ce741b01002c81a18f329c6429f3c5996..a25129d3dae1034bd371e39cacf37c143f94397e 100644 (file)
@@ -172,19 +172,18 @@ struct torture_suite *torture_rpc_ntsvcs(TALLOC_CTX *mem_ctx)
 {
        struct torture_rpc_tcase *tcase;
        struct torture_suite *suite = torture_suite_create(mem_ctx, "ntsvcs");
-       struct torture_test *test;
 
        tcase = torture_suite_add_rpc_iface_tcase(suite, "ntsvcs",
                                                  &ndr_table_ntsvcs);
 
-       test = torture_rpc_tcase_add_test(tcase, "PNP_GetDeviceRegProp",
-                                         test_PNP_GetDeviceRegProp);
-       test = torture_rpc_tcase_add_test(tcase, "PNP_GetDeviceList",
-                                         test_PNP_GetDeviceList);
-       test = torture_rpc_tcase_add_test(tcase, "PNP_GetDeviceListSize",
-                                         test_PNP_GetDeviceListSize);
-       test = torture_rpc_tcase_add_test(tcase, "PNP_GetVersion",
-                                         test_PNP_GetVersion);
+       torture_rpc_tcase_add_test(tcase, "PNP_GetDeviceRegProp",
+                                  test_PNP_GetDeviceRegProp);
+       torture_rpc_tcase_add_test(tcase, "PNP_GetDeviceList",
+                                  test_PNP_GetDeviceList);
+       torture_rpc_tcase_add_test(tcase, "PNP_GetDeviceListSize",
+                                  test_PNP_GetDeviceListSize);
+       torture_rpc_tcase_add_test(tcase, "PNP_GetVersion",
+                                  test_PNP_GetVersion);
 
        return suite;
 }