diff options
-rw-r--r-- | source4/libads/config.m4 | 3 | ||||
-rw-r--r-- | source4/torture/gentest.c | 2 | ||||
-rw-r--r-- | source4/torture/torture_util.c | 2 |
3 files changed, 5 insertions, 2 deletions
diff --git a/source4/libads/config.m4 b/source4/libads/config.m4 index 8c0cc5c121..c48b185728 100644 --- a/source4/libads/config.m4 +++ b/source4/libads/config.m4 @@ -201,6 +201,9 @@ if test x"$with_ads_support" != x"no"; then ac_save_CPPFLAGS=$CPPFLAGS ac_save_LDFLAGS=$LDFLAGS +#MIT needs this, to let us see 'internal' parts of the headers we use + KRB5_CFLAGS="${KRB5_CFLAGS} -DKRB5_PRIVATE -DKRB5_DEPRECATED" + CFLAGS="$CFLAGS $KRB5_CFLAGS" CPPFLAGS="$CPPFLAGS $KRB5_CPPFLAGS" LDFLAGS="$LDFLAGS $KRB5_LDFLAGS" diff --git a/source4/torture/gentest.c b/source4/torture/gentest.c index d414863d82..71e5a8d8f9 100644 --- a/source4/torture/gentest.c +++ b/source4/torture/gentest.c @@ -1913,7 +1913,7 @@ static int run_test(void) current_op.opnum = op; current_op.name = gen_ops[which_op].name; current_op.status = NT_STATUS_OK; - current_op.mem_ctx = talloc_init(current_op.name); + current_op.mem_ctx = talloc_init("%s", current_op.name); ret = gen_ops[which_op].handler(instance); diff --git a/source4/torture/torture_util.c b/source4/torture/torture_util.c index c39aa0ad5e..99192536f4 100644 --- a/source4/torture/torture_util.c +++ b/source4/torture/torture_util.c @@ -251,7 +251,7 @@ void dump_all_info(TALLOC_CTX *mem_ctx, union smb_fileinfo *finfo) */ void torture_all_info(struct smbcli_tree *tree, const char *fname) { - TALLOC_CTX *mem_ctx = talloc_init(fname); + TALLOC_CTX *mem_ctx = talloc_init("%s", fname); union smb_fileinfo finfo; NTSTATUS status; |