1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-16 07:58:04 +00:00
freebsd-ports/archivers/arc/files/patch-arcrun.c
Mathieu Arnold 9fa9eb9ac7 Cleanup patches, a* categories.
Rename them to follow the make makepatch naming, and regenerate them.

With hat:	portmgr
Sponsored by:	Absolight
2016-07-26 16:51:15 +00:00

39 lines
1.1 KiB
C

--- arcrun.c.orig 2010-08-07 13:06:42 UTC
+++ arcrun.c
@@ -98,7 +98,7 @@ runfile(hdr, num, arg) /* run a file */
strcpy(sys, buf);
else {
- if (warn) {
+ if (arcwarn) {
printf("File %s is not a .BAS, .BAT, .COM, or .EXE\n",
hdr->name);
nerrs++;
@@ -112,7 +112,7 @@ runfile(hdr, num, arg) /* run a file */
&& strcmp(i, ".TTP")
&& strcmp(i, ".TOS"))
{
- if (warn) {
+ if (arcwarn) {
printf("File %s is not a .PRG, .TOS, or .TTP\n",
hdr->name);
nerrs++;
@@ -122,7 +122,7 @@ runfile(hdr, num, arg) /* run a file */
}
#endif
- if (warn)
+ if (arcwarn)
if ((tmp = fopen(buf, "r")))
arcdie("Temporary file %s already exists", buf);
if (!(tmp = tmpopen(buf)))
@@ -146,7 +146,7 @@ runfile(hdr, num, arg) /* run a file */
if (system(buf)) /* try to invoke it */
arcdie("Execution failed for %s", buf);
#endif
- if (unlink(buf) && warn) {
+ if (unlink(buf) && arcwarn) {
printf("Cannot unsave temporary file %s\n", buf);
nerrs++;
}