char *maybe_temp_file(const void *ctx, const char *extension, bool keep,
const char *srcname)
{
- size_t baselen;
+ unsigned baselen;
char *f, *suffix = talloc_strdup(ctx, "");
struct stat st;
unsigned int count = 0;
suffix, extension);
talloc_free(suffix);
suffix = talloc_asprintf(ctx, "-%u", ++count);
- } while (!keep && lstat(f, &st) == 0);
+ } while (lstat(f, &st) == 0);
if (tools_verbose)
printf("Creating file %s\n", f);