- return talloc_asprintf(ctx, "%s/%u%s", tmpdir, count++, extension);
+char *temp_file(const void *ctx, const char *extension)
+{
+ char *f = talloc_asprintf(ctx, "%s/%u%s",
+ temp_dir(ctx), count++, extension);
+ if (tools_verbose)
+ printf("Created temporary file %s\n", f);
+ return f;