summaryrefslogtreecommitdiff
path: root/source4/torture/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/torture/util.c')
-rw-r--r--source4/torture/util.c19
1 files changed, 2 insertions, 17 deletions
diff --git a/source4/torture/util.c b/source4/torture/util.c
index f6287e34d6..0e9dda42fa 100644
--- a/source4/torture/util.c
+++ b/source4/torture/util.c
@@ -25,24 +25,9 @@
#include "libcli/raw/libcliraw.h"
/**
- create a temporary directory.
-*/
-_PUBLIC_ NTSTATUS torture_temp_dir(struct torture_context *tctx,
- const char *prefix,
- char **tempdir)
-{
- *tempdir = talloc_asprintf(tctx, "%s/%s.XXXXXX", tctx->outputdir, prefix);
-
- if (mkdtemp(*tempdir) == NULL)
- return NT_STATUS_UNSUCCESSFUL;
-
- return NT_STATUS_OK;
-}
-
-/**
check if 2 NTTIMEs are equal.
*/
-BOOL nt_time_equal(NTTIME *t1, NTTIME *t2)
+bool nt_time_equal(NTTIME *t1, NTTIME *t2)
{
return *t1 == *t2;
}
@@ -61,7 +46,7 @@ NTSTATUS torture_second_tcon(TALLOC_CTX *mem_ctx,
return NT_STATUS_NO_MEMORY;
}
- result = smbcli_tree_init(session, tmp_ctx, False);
+ result = smbcli_tree_init(session, tmp_ctx, false);
if (result == NULL) {
talloc_free(tmp_ctx);
return NT_STATUS_NO_MEMORY;