Author: metze Date: 2006-08-24 09:53:21 +0000 (Thu, 24 Aug 2006) New Revision: 17786
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=17786 Log: remove unused macros, fix compiler warnings metze Modified: branches/SAMBA_4_0/source/torture/smb2/find.c branches/SAMBA_4_0/source/torture/smb2/setinfo.c Changeset: Modified: branches/SAMBA_4_0/source/torture/smb2/find.c =================================================================== --- branches/SAMBA_4_0/source/torture/smb2/find.c 2006-08-24 09:51:41 UTC (rev 17785) +++ branches/SAMBA_4_0/source/torture/smb2/find.c 2006-08-24 09:53:21 UTC (rev 17786) @@ -53,15 +53,6 @@ ret = False; \ }} while (0) -#define CHECK_STRING(call_name, stype, field1, field2) do { \ - union smb_search_data *d = find_level("SMB2_FIND_" #call_name); \ - if (strcmp(io.all_info2.out.field2.s, d->stype.field1.s) != 0) { \ - printf("(%s) %s/%s should be '%s' - '%s'\n", __location__, \ - #call_name, #field2, \ - io.all_info2.out.field2.s, d->stype.field1.s); \ - ret = False; \ - }} while (0) - #define CHECK_CONST_STRING(call_name, stype, field, str) do { \ union smb_search_data *d = find_level("SMB2_FIND_" #call_name); \ if (strcmp(str, d->stype.field.s) != 0) { \ Modified: branches/SAMBA_4_0/source/torture/smb2/setinfo.c =================================================================== --- branches/SAMBA_4_0/source/torture/smb2/setinfo.c 2006-08-24 09:51:41 UTC (rev 17785) +++ branches/SAMBA_4_0/source/torture/smb2/setinfo.c 2006-08-24 09:53:21 UTC (rev 17786) @@ -130,18 +130,6 @@ goto done; \ }} while (0) -#define CHECK_STR(call, stype, field, value) do { \ - CHECK1(call); \ - if (NT_STATUS_IS_OK(status) && NT_STATUS_IS_OK(status2) && strcmp(finfo2.stype.out.field, value) != 0) { \ - printf("(%s) %s - %s/%s should be '%s' - '%s'\n", __location__, \ - call_name, #stype, #field, \ - value, \ - finfo2.stype.out.field); \ - torture_smb2_all_info(tree, handle); \ - ret = False; \ - goto done; \ - }} while (0) - #define CHECK_STATUS(status, correct) do { \ if (!NT_STATUS_EQUAL(status, correct)) { \ printf("(%s) Incorrect status %s - should be %s\n", \