| 246 |
|
|
| 247 |
|
close_allsrcs() /* done with everything */ |
| 248 |
|
{ |
| 249 |
< |
register struct source *this; |
| 249 |
> |
register struct source *this, *nsrc; |
| 250 |
|
|
| 251 |
< |
for (this = curlist; this != NULL; this = this->next) |
| 251 |
> |
for (this = curlist; this != NULL; this = nsrc) { |
| 252 |
> |
nsrc = this->next; |
| 253 |
|
donesource(this); |
| 254 |
+ |
} |
| 255 |
|
curlist = NULL; |
| 256 |
|
} |
| 257 |
|
|
| 290 |
|
donelist = sp; |
| 291 |
|
if (verbose) |
| 292 |
|
fprintf(stderr, |
| 293 |
< |
"%s: found source at (%f,%f,%f), solid angle %f, brightness %f\n", |
| 293 |
> |
"%s: found source at (%f,%f,%f), dw %f, br %f\n", |
| 294 |
|
progname, sp->dir[0], sp->dir[1], sp->dir[2], |
| 295 |
|
sp->dom, sp->brt); |
| 296 |
|
} |