77 |
|
unsigned timelim = 0; |
78 |
|
int rvrlim = -1; |
79 |
|
|
80 |
– |
extern long lseek(), ftell(); |
81 |
– |
|
80 |
|
int gotalrm = 0; |
81 |
|
int onalrm() { gotalrm++; } |
82 |
|
|
122 |
|
case 'p': /* pixel aspect ratio? */ |
123 |
|
if (argv[i][2] != 'a' || argv[i][3]) |
124 |
|
break; |
125 |
< |
pixaspect = atof(argv[i+1]); |
125 |
> |
pixaspect = atof(argv[++i]); |
126 |
|
continue; |
127 |
|
case 'T': /* time limit (hours) */ |
128 |
|
if (argv[i][2]) |
508 |
|
filerr("lock"); |
509 |
|
#endif |
510 |
|
/* write new piece to file */ |
511 |
< |
if (lseek(outfd, fls.l_start, 0) == -1) |
511 |
> |
if (lseek(outfd, fls.l_start, 0) < 0) |
512 |
|
filerr("seek"); |
513 |
|
if (hmult == 1) { |
514 |
|
if (writebuf(outfd, (char *)pbuf, |
521 |
|
filerr("write"); |
522 |
|
if (y < vr-1 && lseek(outfd, |
523 |
|
(long)(hmult-1)*hr*sizeof(COLR), |
524 |
< |
1) == -1) |
524 |
> |
1) < 0) |
525 |
|
filerr("seek"); |
526 |
|
} |
527 |
|
#if NFS |