s4:torture/ndr: #if 0 unused code
authorStefan Metzmacher <metze@samba.org>
Wed, 18 Mar 2015 21:45:17 +0000 (22:45 +0100)
committerJeremy Allison <jra@samba.org>
Fri, 20 Mar 2015 19:43:12 +0000 (20:43 +0100)
This avoids compiler warnings, but keep the code arround to be activated later.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/torture/ndr/epmap.c
source4/torture/ndr/lsa.c
source4/torture/ndr/netlogon.c
source4/torture/ndr/ntlmssp.c
source4/torture/ndr/winreg.c

index 142e74fa1a3efbebf94fbd51cc140852fe9ce183..ddc1e7493702488a4825fa3533c0ac2403945943 100644 (file)
@@ -49,6 +49,7 @@ static bool map_in_check(struct torture_context *tctx,
        return true;
 }
 
+#if 0
 static const uint8_t map_out_data[] = {
   0x00, 0x00, 0x00, 0x00, 0x18, 0xc3, 0x47, 0xdd, 0xe6, 0x5a, 0x8b, 0x42,
   0xb3, 0xb7, 0xc7, 0x79, 0x7b, 0xf0, 0x45, 0xe0, 0x01, 0x00, 0x00, 0x00,
@@ -65,6 +66,7 @@ static bool map_out_check(struct torture_context *tctx,
 
        return true;
 }
+#endif
 
 struct torture_suite *ndr_epmap_suite(TALLOC_CTX *ctx)
 {
index 353fecfc880ccdca83f746fed79cdad07744370e..c83c5247d59dbfb376abe75a2d933724ef06d22d 100644 (file)
@@ -1745,6 +1745,7 @@ static bool lsarlookupsids3_in_check(struct torture_context *tctx,
        return true;
 }
 
+#if 0
 static const uint8_t lsarlookupsids3_out_data[] = {
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x07, 0x00, 0x00, 0x00, 0x22, 0x00, 0x00, 0xc0
@@ -1770,6 +1771,7 @@ static bool lsarlookupsids3_out_check(struct torture_context *tctx,
 
        return true;
 }
+#endif
 
 static const uint8_t lsarenumerateprivileges_in_data[] = {
   0x00, 0x00, 0x00, 0x00, 0x2a, 0xab, 0xb8, 0x84, 0x36, 0xc6, 0xed, 0x4f,
index c7d53dbb4c83a7ead70ff80a968a4f2bf4bdcdf5..2e20ff748b9483405ea61be8cccbbc64bf05cd6f 100644 (file)
@@ -169,6 +169,7 @@ static bool netrlogonsamlogon_w2k_in_check(struct torture_context *tctx,
        return true;
 }
 
+#if 0
 static const uint8_t netrlogonsamlogon_w2k_out_data[] = {
        0x6c, 0xdb, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
        0x00, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00,
@@ -189,6 +190,7 @@ static bool netrlogonsamlogon_w2k_out_check(struct torture_context *tctx,
 
        return true;
 }
+#endif
 
 struct torture_suite *ndr_netlogon_suite(TALLOC_CTX *ctx)
 {
index a3cf7b8591d83b149d086bad5de7716016d8db63..36127ce194fd82f68f02599db1c91b3c08c50f9d 100644 (file)
@@ -36,6 +36,7 @@ static bool ntlmssp_NEGOTIATE_MESSAGE_check(struct torture_context *tctx,
        return true;
 }
 
+#if 0
 static const uint8_t ntlmssp_CHALLENGE_MESSAGE_data[] = {
        0x4e, 0x54, 0x4c, 0x4d, 0x53, 0x53, 0x50, 0x00, 0x02, 0x00, 0x00, 0x00,
        0x0a, 0x00, 0x0a, 0x00, 0x38, 0x00, 0x00, 0x00, 0x95, 0x82, 0x89, 0xe2,
@@ -107,6 +108,7 @@ static bool ntlmssp_AUTHENTICATE_MESSAGE_check(struct torture_context *tctx,
 {
        return true;
 }
+#endif
 
 struct torture_suite *ndr_ntlmssp_suite(TALLOC_CTX *ctx)
 {
index 08c2a05c9667f2be653b3a0230f92e5982c79a29..d77cdb33db15b77eda024c8087b67dc1963acc11 100644 (file)
@@ -441,6 +441,7 @@ static bool queryinfokey_in_check(struct torture_context *tctx, struct winreg_Qu
        return true;
 }
 
+#if 0
 static const uint8_t queryinfokey_out_data[] = {
   0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x00, 0x00, 0x00,
   0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
@@ -459,6 +460,7 @@ static bool queryinfokey_out_check(struct torture_context *tctx, struct winreg_Q
        torture_assert_werr_ok(tctx, r->out.result, "return code");
        return true;
 }
+#endif
 
 static const uint8_t notifychangekeyvalue_in_data[] = {
   0x00, 0x00, 0x00, 0x00, 0xb2, 0x64, 0xbc, 0xb3, 0x7f, 0x90, 0x29, 0x4a,
@@ -489,6 +491,7 @@ static bool notifychangekeyvalue_out_check(struct torture_context *tctx, struct
        return true;
 }
 
+#if 0
 static const uint8_t getkeysecurity_in_data[] = {
   0x00, 0x00, 0x00, 0x00, 0xbd, 0xaa, 0xf6, 0x59, 0xc1, 0x82, 0x1f, 0x4d,
   0x84, 0xa9, 0xdd, 0xae, 0x60, 0x77, 0x1e, 0x45, 0x00, 0x00, 0x00, 0x02,
@@ -521,6 +524,7 @@ static bool getkeysecurity_out_check(struct torture_context *tctx,
        torture_assert_werr_ok(tctx, r->out.result, "return code");
        return true;
 }
+#endif
 
 static const uint8_t enumkey_in_data[] = {
   0x00, 0x00, 0x00, 0x00, 0x85, 0xb8, 0x41, 0xb0, 0x17, 0xe4, 0x28, 0x45,