}
/* the (intptr_t)ua will allow one file per console session */
- make_unique_filename(&name, (intptr_t)ua, (char *)key);
+ make_unique_filename(&name, (intptr_t)ua, key);
fp = bfopen(name, "w");
if (!fp) {
* without saving its name, and re-generate the name
* so that it can be deleted.
*/
-void make_unique_filename(POOLMEM **name, int Id, char *what)
+void make_unique_filename(POOLMEM **name, int Id, const char *what)
{
Mmsg(name, "%s/%s.%s.%d.tmp", working_directory, my_name, what, Id);
}
if (!out_fname) {
out_fname = get_pool_memory(PM_FNAME);
- make_unique_filename(&out_fname, (int)(intptr_t)this, (char*)"configfile");
+ make_unique_filename(&out_fname, (int)(intptr_t)this, "configfile");
}
fp = bfopen(out_fname, "wb");
int bmicrosleep (int32_t sec, int32_t usec);
char *bfgets (char *s, int size, FILE *fd);
char *bfgets (POOLMEM *&s, FILE *fd);
-void make_unique_filename (POOLMEM **name, int Id, char *what);
+void make_unique_filename (POOLMEM **name, int Id, const char *what);
#ifndef HAVE_STRTOLL
long long int strtoll (const char *ptr, char **endptr, int base);
#endif