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

Comparing ray/src/rt/rview.c (file contents):
Revision 2.20 by schorsch, Mon Jun 30 14:59:13 2003 UTC vs.
Revision 2.23 by schorsch, Mon Jul 21 22:30:19 2003 UTC

# Line 12 | Line 12 | static const char      RCSid[] = "$Id$";
12   #include  <signal.h>
13   #include  <ctype.h>
14  
15 #include  "platform.h"
15   #include  "ray.h"
16   #include  "rpaint.h"
17  
# Line 115 | Line 114 | char  *dname;
114          id = octname!=NULL ? octname : progname;
115                                                  /* check device table */
116          for (i = 0; devtable[i].name; i++)
117 <                if (!strcmp(dname, devtable[i].name))
117 >                if (!strcmp(dname, devtable[i].name)) {
118                          if ((dev = (*devtable[i].init)(dname, id)) == NULL) {
119                                  sprintf(errmsg, "cannot initialize %s", dname);
120                                  error(USER, errmsg);
121                          } else
122                                  return;
123 < #ifndef RHAS_FORK_EXEC /* XXX otherwise we do nothing? */
123 >                }
124                                                  /* not there, try exec */
125          if ((dev = comm_init(dname, id)) == NULL) {
126                  sprintf(errmsg, "cannot start device \"%s\"", dname);
127                  error(USER, errmsg);
128          }
130 #endif
129   }
130  
131  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines