[BACK]Return to indent.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / indent

Diff for /src/usr.bin/indent/indent.c between version 1.4 and 1.5

version 1.4, 1997/07/25 22:00:45 version 1.5, 1997/09/10 06:59:35
Line 197 
Line 197 
                 out_name = argv[i];     /* remember name of output file */                  out_name = argv[i];     /* remember name of output file */
                 if (strcmp(in_name, out_name) == 0)     /* attempt to overwrite                  if (strcmp(in_name, out_name) == 0)     /* attempt to overwrite
                                                          * the file */                                                           * the file */
                         errx(1, "input and output files must be different\n");                          errx(1, "input and output files must be different");
                 output = fopen(out_name, "w");                  output = fopen(out_name, "w");
                 if (output == NULL)     /* check for create error */                  if (output == NULL)     /* check for create error */
                         err(1, out_name);                          err(1, out_name);
                 continue;                  continue;
             }              }
             errx(1, "unknown parameter: %s\n", argv[i]);              errx(1, "unknown parameter: %s", argv[i]);
         }          }
         else          else
             set_option(argv[i]);              set_option(argv[i]);
     }                           /* end of for */      }                           /* end of for */
     if (input == NULL)      if (input == NULL)
         errx(1, "usage: indent file [ outfile ] [ options ]\n");          errx(1, "usage: indent file [ outfile ] [ options ]");
     if (output == NULL)      if (output == NULL)
         if (troff)          if (troff)
             output = stdout;              output = stdout;

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5