167 |
|
fillscanbar(scanbar, zbar, hresolu, ypos, ystep); |
168 |
|
/* write it out */ |
169 |
|
for (i = ystep; i > 0; i--) { |
170 |
< |
if (zfd!=-1 && write(zfd,zbar[i],hresolu*sizeof(float)) |
170 |
> |
if (zfd != -1 && write(zfd, (char *)zbar[i], |
171 |
> |
hresolu*sizeof(float)) |
172 |
|
< hresolu*sizeof(float)) |
173 |
|
goto writerr; |
174 |
< |
if (fwritescan(scanbar[i],hresolu,stdout) < 0) |
174 |
> |
if (fwritescan(scanbar[i], hresolu, stdout) < 0) |
175 |
|
goto writerr; |
176 |
|
} |
177 |
|
if (fflush(stdout) == EOF) |
179 |
|
} |
180 |
|
/* clean up */ |
181 |
|
if (zfd != -1) { |
182 |
< |
if (write(zfd,zbar[0],hresolu*sizeof(float)) |
182 |
> |
if (write(zfd, (char *)zbar[0], hresolu*sizeof(float)) |
183 |
|
< hresolu*sizeof(float)) |
184 |
|
goto writerr; |
185 |
|
close(zfd); |