struct outsect outsect[S_MAX];
char *stringarea ;
-char *output_file;
-int output_file_created;
+char *ofile;
+int ofile_created;
char *program ;
case 1: break;
case 3: if ((output = fopen(argv[2], "w")) == (FILE *)0)
fatal("Can't write %s.\n", argv[2]);
- output_file = argv[2];
- output_file_created = 1;
+ ofile = argv[2];
+ ofile_created = 1;
/* FALLTHROUGH */
case 2: if ((input = fopen(argv[1], "r")) == (FILE *)0)
fatal("Can't read %s.\n", argv[1]);
if ( ferror(output) ) {
fatal("output write error\n") ;
}
- if ( output_file_created ) chmod(argv[2],0755);
+ if ( ofile_created ) chmod(argv[2],0755);
return 0;
}
{
fprintf(stderr,"%s: ",program) ;
fprintf(stderr, s, a1, a2);
- if (output_file_created)
- unlink(output_file);
+ if (ofile_created)
+ unlink(ofile);
exit(-1);
}