Bug 770: Move codw->cmdw transform to outer layer
commitb7d03f9b044e69e712b8c66ff9a4974f6ab564a5
authorKalle Olavi Niemitalo <kon@iki.fi>
Sat, 18 Jul 2009 18:57:40 +0000 (18 21:57 +0300)
committerKalle Olavi Niemitalo <Kalle@Astalo.kon.iki.fi>
Sun, 19 Jul 2009 01:06:32 +0000 (19 04:06 +0300)
tree739949b9638e94fb79d6f49e4faad21734238a74
parent2f04a38c6f2d29a5b8a484cc350a9bd648c86548
Bug 770: Move codw->cmdw transform to outer layer

Commit ff136e5116a750d7c6d8368d170d7a7f3d4920a4 on 2006-07-16 made
lun_resume() check if cdf_hop->data points to struct codw_hop,
and transform that to struct cmdw_hop if so.  Move the transform
into a separate function called from continue_download_do().
This way, the structures used with create_download_file() no longer
need to begin with int magic.
src/session/download.c