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

Comparing ray/src/util/ranimate.c (file contents):
Revision 2.8 by greg, Wed Jan 24 14:31:36 1996 UTC vs.
Revision 2.9 by greg, Wed Feb 7 16:42:41 1996 UTC

# Line 204 | Line 204 | getastat()                     /* check/set animation status */
204                  goto fmterr;
205          fclose(fp);
206          if (astat.pid != 0) {                   /* thinks it's still running */
207 <                gethostname(buf, sizeof(buf));
208 <                if (strcmp(buf, astat.host)) {
207 >                if (strcmp(myhostname(), astat.host)) {
208                          fprintf(stderr,
209                          "%s: process %d may still be running on host %s\n",
210                                          progname, astat.pid, astat.host);
# Line 224 | Line 223 | getastat()                     /* check/set animation status */
223                  return(-1);
224          }
225   setours:                                        /* set our values */
226 <        gethostname(astat.host, sizeof(astat.host));
226 >        strcpy(astat.host, myhostname());
227          astat.pid = getpid();
228          strcpy(astat.cfname, cfname);
229          return(0);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines