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

Diff for /src/usr.bin/vis/vis.c between version 1.7 and 1.8

version 1.7, 2003/06/10 22:20:54 version 1.8, 2003/09/08 00:07:41
Line 31 
Line 31 
  */   */
   
 #ifndef lint  #ifndef lint
 static char copyright[] =  static const char copyright[] =
 "@(#) Copyright (c) 1989, 1993\n\  "@(#) Copyright (c) 1989, 1993\n\
         The Regents of the University of California.  All rights reserved.\n";          The Regents of the University of California.  All rights reserved.\n";
 #endif /* not lint */  #endif /* not lint */
   
 #ifndef lint  #ifndef lint
 #if 0  #if 0
 static char sccsid[] = "@(#)vis.c       8.1 (Berkeley) 6/6/93";  static const char sccsid[] = "@(#)vis.c 8.1 (Berkeley) 6/6/93";
 #endif  #endif
 static char rcsid[] = "$OpenBSD$";  static const char rcsid[] = "$OpenBSD$";
 #endif /* not lint */  #endif /* not lint */
   
 #include <stdio.h>  #include <stdio.h>
Line 54 
Line 54 
   
 int foldit(char *, int, int);  int foldit(char *, int, int);
 void process(FILE *, char *);  void process(FILE *, char *);
   __dead void usage(void);
   
 int  int
 main(int argc, char *argv[])  main(int argc, char *argv[])
Line 103 
Line 104 
 #endif  #endif
                 case '?':                  case '?':
                 default:                  default:
                         fprintf(stderr,                          usage();
                             "usage: vis [-nwctsobf] [-F foldwidth]\n");  
                         exit(1);  
                 }                  }
         argc -= optind;          argc -= optind;
         argv += optind;          argv += optind;
Line 172 
Line 171 
          */           */
         if (fold && *(cp-1) != '\n')          if (fold && *(cp-1) != '\n')
                 printf("\\\n");                  printf("\\\n");
   }
   
   __dead void
   usage(void)
   {
           extern char *__progname;
   
           fprintf(stderr, "usage: %s [-cbflnostw] [-F [foldwidth]] [file ...]\n",
               __progname);
           exit(1);
 }  }

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8