r873: converted samba4 to use real 64 bit integers instead of
[kamenim/samba.git] / source4 / torture / raw / search.c
index 57c6eb2bb9d0e55af6885eceeb64ed307de10591..ae5d8c34a8bfcba2e44febc3a1f6f5db46b895e9 100644 (file)
@@ -197,11 +197,11 @@ static BOOL test_one_file(struct cli_state *cli, TALLOC_CTX *mem_ctx)
 #define CHECK_TIME(name, sname1, field1, v, sname2, field2) do { \
        s = find(name); \
        if (s) { \
-               if (s->sname1.field1 != (~1 & nt_time_to_unix(&v.sname2.out.field2))) { \
+               if (s->sname1.field1 != (~1 & nt_time_to_unix(v.sname2.out.field2))) { \
                        printf("(%d) %s/%s [%s] != %s/%s [%s]\n", \
                               __LINE__, \
                                #sname1, #field1, timestring(mem_ctx, s->sname1.field1), \
-                               #sname2, #field2, nt_time_string(mem_ctx, &v.sname2.out.field2)); \
+                               #sname2, #field2, nt_time_string(mem_ctx, v.sname2.out.field2)); \
                        ret = False; \
                } \
        }} while (0)
@@ -209,11 +209,11 @@ static BOOL test_one_file(struct cli_state *cli, TALLOC_CTX *mem_ctx)
 #define CHECK_NTTIME(name, sname1, field1, v, sname2, field2) do { \
        s = find(name); \
        if (s) { \
-               if (memcmp(&s->sname1.field1, &v.sname2.out.field2, sizeof(NTTIME))) { \
+               if (s->sname1.field1 != v.sname2.out.field2) { \
                        printf("(%d) %s/%s [%s] != %s/%s [%s]\n", \
                               __LINE__, \
-                               #sname1, #field1, nt_time_string(mem_ctx, &s->sname1.field1), \
-                               #sname2, #field2, nt_time_string(mem_ctx, &v.sname2.out.field2)); \
+                               #sname1, #field1, nt_time_string(mem_ctx, s->sname1.field1), \
+                               #sname2, #field2, nt_time_string(mem_ctx, v.sname2.out.field2)); \
                        ret = False; \
                } \
        }} while (0)