file.h: Rename function argument to avoid C++ keyword clash.

Fixes #744
This commit is contained in:
Sean Bright
2024-05-24 10:32:09 -04:00
parent c014b66554
commit d51a86dc91
2 changed files with 6 additions and 5 deletions

View File

@@ -184,11 +184,11 @@ int ast_format_def_unregister(const char *name)
return res;
}
FILE *ast_file_mkftemp(char *template, mode_t mode)
FILE *ast_file_mkftemp(char *template_name, mode_t mode)
{
FILE *p = NULL;
int pfd = mkstemp(template);
chmod(template, mode);
int pfd = mkstemp(template_name);
chmod(template_name, mode);
if (pfd > -1) {
p = fdopen(pfd, "w+");
if (!p) {