Index: import_sch.c =================================================================== --- import_sch.c (revision 4851) +++ import_sch.c (revision 4852) @@ -306,7 +306,7 @@ } if (strcasecmp(mode, "gnetlist") == 0) { - char *tmpfile = tempfile_name_new("gnetlist_output"); + char *tmpfile = pcb_tempfile_name_new("gnetlist_output"); const char **cmd; int i; @@ -350,7 +350,7 @@ ActionExecuteFile(1, cmd, 0, 0); free(cmd); - tempfile_unlink(tmpfile); + pcb_tempfile_unlink(tmpfile); } else if (strcasecmp(mode, "make") == 0) { int must_free_tmpfile = 0; @@ -378,7 +378,7 @@ if (user_outfile) tmpfile = user_outfile; else { - tmpfile = tempfile_name_new("gnetlist_output"); + tmpfile = pcb_tempfile_name_new("gnetlist_output"); if (tmpfile == NULL) { Message(PCB_MSG_ERROR, _("Could not create temp file")); return 1; @@ -427,7 +427,7 @@ free((char*)cmd[3]); free((char*)cmd[4]); if (must_free_tmpfile) - tempfile_unlink(tmpfile); + pcb_tempfile_unlink(tmpfile); } else { Message(PCB_MSG_DEFAULT, _("Unknown import mode: %s\n"), mode);