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

Comparing ray/src/hd/rholo4.c (file contents):
Revision 3.32 by schorsch, Mon Jun 30 14:59:12 2003 UTC vs.
Revision 3.35 by schorsch, Sun Jul 27 22:12:02 2003 UTC

# Line 5 | Line 5 | static const char      RCSid[] = "$Id$";
5   * Holodeck display process communication
6   */
7  
8 #include <sys/uio.h>
9 #include <string.h>
10
8   #include "rholo.h"
9   #include "rhdisp.h"
10   #include "rtprocess.h"
11 + #include <sys/uio.h>
12 + #include <string.h>
13  
14   #ifndef HDSUF
15   #define HDSUF           ".hdi"
# Line 125 | Line 124 | int    block;
124                          dpout = NULL;
125                          error(USER, "display process died");
126                  }
127 <                if (errno != EAGAIN & errno != EINTR)
127 >                if ((errno != EAGAIN) & (errno != EINTR))
128                          goto readerr;
129                  return(2);              /* acceptable failure */
130          }
# Line 187 | Line 186 | int    block;
186          case DR_VIEWPOINT:      /* set target eye position */
187                  if (msg.nbytes != sizeof(VIEWPOINT))
188                          error(INTERNAL, "bad DR_VIEWPOINT from display process");
189 <                copystruct(&myeye, (VIEWPOINT *)buf);
189 >                myeye = *((VIEWPOINT *)buf);
190                  break;
191          case DR_ATTEN:          /* block for priority request */
192                  if (msg.nbytes)
# Line 216 | Line 215 | int    block;
215          case DR_CLOBBER:        /* clobber holodeck */
216                  if (msg.nbytes)
217                          error(INTERNAL, "bad DR_CLOBBER from display process");
218 <                if (force <= 0 | ncprocs <= 0)
218 >                if ((force <= 0) | (ncprocs <= 0))
219                          error(WARNING, "request to clobber holodeck denied");
220                  else {
221                          error(WARNING, "clobbering holodeck contents");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines