Change use of perror() to warn()

Submitted by:	bde
This commit is contained in:
Kris Kennaway 2000-08-03 23:13:35 +00:00
parent 116c1d9d81
commit b088fe8c8f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=64212

View file

@ -238,7 +238,7 @@ Proc(char *filename, unsigned applied)
return Exit_Broke;
}
if ((fd = mkstemp(fn)) == -1 || (f2 = fdopen(fd, "w+")) == NULL) {
perror(fn);
warn("%s", fn);
free(fn);
if (fd != -1)
close(fd);