#include <err.h>
#include <unistd.h>
#include <assert.h>
+#include <signal.h>
#include "tools.h"
-static char *tmpdir = NULL;
+static const char *tmpdir = NULL;
bool tools_verbose = false;
/* Ten minutes. */
return false;
}
-static int unlink_all(char *dir)
+static int unlink_all(const char *dir)
{
char cmd[strlen(dir) + sizeof("rm -rf ")];
sprintf(cmd, "rm -rf %s", dir);
return 0;
}
-char *temp_dir(const void *ctx)
+const char *temp_dir(const void *ctx)
{
/* For first call, create dir. */
while (!tmpdir) {