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.27 by gwlarson, Mon Jul 13 17:55:51 1998 UTC vs.
Revision 3.28 by gwlarson, Fri Jul 31 16:53:47 1998 UTC

# Line 406 | Line 406 | serv_result()                  /* get next server result and process
406                  break;
407          case DS_OUTSECT:
408                  do_outside = 1;
409 <                break;
409 >                goto noargs;
410          case DS_EYESEP:
411                  if (msg.nbytes <= 1 || (eyesepdist = atof(buf)) <= FTINY)
412                          error(INTERNAL, "bad eye separation from server");
# Line 422 | Line 422 | serv_result()                  /* get next server result and process
422                  }
423   #endif
424                  imm_mode = msg.type==DS_STARTIMM;
425 <                /* fall through */
425 >                goto noargs;
426          case DS_ACKNOW:
427          case DS_SHUTDOWN:
428 <                if (msg.nbytes) {
429 <                        sprintf(errmsg,
430 <                                "unexpected body with server message %d",
431 <                                        msg.type);
432 <                        error(INTERNAL, errmsg);
433 <                }
434 <                break;
428 >                goto noargs;
429          default:
430                  error(INTERNAL, "unrecognized result from server process");
431          }
432          return(msg.type);               /* return message type */
433 + noargs:
434 +        if (msg.nbytes) {
435 +                sprintf(errmsg, "unexpected body with server message %d",
436 +                                msg.type);
437 +                error(INTERNAL, errmsg);
438 +        }
439 +        return(msg.type);
440   readerr:
441          if (feof(stdin))
442                  error(SYSTEM, "server process died");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines