mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
r16529: Fix type.
This commit is contained in:
parent
3763ed3092
commit
f9a9884c0d
@ -146,7 +146,7 @@ BOOL torture_run_test(struct torture_context *context,
|
|||||||
|
|
||||||
|
|
||||||
#define torture_assert_casestr_equal(ctx,got,expected,string) \
|
#define torture_assert_casestr_equal(ctx,got,expected,string) \
|
||||||
do { const char *__got = got, __expected = expected; \
|
do { const char *__got = got, *__expected = expected; \
|
||||||
if (strcasecmp(__got, __expected) != 0) { \
|
if (strcasecmp(__got, __expected) != 0) { \
|
||||||
torture_fail(ctx, "%s:%d (%s): got %s, expected %s", __FILE__, \
|
torture_fail(ctx, "%s:%d (%s): got %s, expected %s", __FILE__, \
|
||||||
__LINE__, string, got, expected); \
|
__LINE__, string, got, expected); \
|
||||||
@ -155,7 +155,7 @@ BOOL torture_run_test(struct torture_context *context,
|
|||||||
} while(0)
|
} while(0)
|
||||||
|
|
||||||
#define torture_assert_str_equal(ctx,got,expected,string) \
|
#define torture_assert_str_equal(ctx,got,expected,string) \
|
||||||
do { const char *__got = got, __expected = expected; \
|
do { const char *__got = got, *__expected = expected; \
|
||||||
if (strcmp(__got, __expected) != 0) { \
|
if (strcmp(__got, __expected) != 0) { \
|
||||||
torture_fail(ctx, "%s:%d (%s): got %s, expected %s", __FILE__, \
|
torture_fail(ctx, "%s:%d (%s): got %s, expected %s", __FILE__, \
|
||||||
__LINE__, string, __got, __expected); \
|
__LINE__, string, __got, __expected); \
|
||||||
|
Loading…
Reference in New Issue
Block a user