ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/cv/mgflib/mgfilt.c
(Generate patch)

Comparing ray/src/cv/mgflib/mgfilt.c (file contents):
Revision 1.5 by greg, Wed Nov 22 12:23:26 1995 UTC vs.
Revision 1.7 by schorsch, Sun Jul 27 22:12:02 2003 UTC

# Line 1 | Line 1
1 /* Copyright (c) 1995 Regents of the University of California */
2
1   #ifndef lint
2 < static char SCCSid[] = "$SunId$ LBL";
2 > static const char       RCSid[] = "$Id$";
3   #endif
6
4   /*
5   * Filter MGF stream, removing entities that won't be understood
6   */
7  
8   #include <stdio.h>
9 + #include <stdlib.h>
10   #include "parser.h"
11  
12                                  /* Number of entities for major versions */
# Line 43 | Line 41 | char   *argv[];
41          }
42          if (isint(argv[1])) {
43                  i = atoi(argv[1]);
44 <                if (i < 1 | i > MG_VMAJOR) {
44 >                if ((i < 1) | (i > MG_VMAJOR)) {
45                          fprintf(stderr, "%s: bad version number: %d\n",
46                                          argv[0], i);
47                          exit(1);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines