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

Comparing ray/src/hd/rhdisp.c (file contents):
Revision 3.39 by gwlarson, Sun Jan 3 17:49:11 1999 UTC vs.
Revision 3.41 by gwlarson, Mon Mar 8 17:31:49 1999 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1998 Silicon Graphics, Inc. */
1 > /* Copyright (c) 1999 Silicon Graphics, Inc. */
2  
3   #ifndef lint
4   static char SCCSid[] = "$SunId$ SGI";
# Line 40 | Line 40 | char   *progname;              /* global argv[0] */
40   FILE    *sstdin, *sstdout;      /* server's standard input and output */
41  
42   #ifdef DEBUG
43 #include <sys/types.h>
43   extern time_t   time();
44   static time_t   tmodesw;
45   static time_t   timm, tadd;
# Line 155 | Line 154 | disp_wait()                    /* wait for more input */
154          int     n;
155          register int    i;
156                                  /* see if we can avoid select call */
157 +        if (hdlist[0] == NULL)
158 +                return(RDY_SRV);        /* initialize first */
159          flgs = 0;               /* flag what's ready already */
160          if (imm_mode || stdin->_cnt > 0)
161                  flgs |= RDY_SRV;
# Line 269 | Line 270 | register VIEW  *v;
270          static VIEW     viewhist[VIEWHISTLEN];
271          static unsigned nhist;
272          VIEW    *dv;
273 <        int     i, res[2], *slist;
273 >        int     i, res[2];
274 >        int2    *slist;
275          char    *err;
276                                  /* restore previous view? */
277          if (v == NULL) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines