[syslinux] Patch sensible callback framework

Steffen Winterfeldt wfeldt at suse.de
Wed Apr 28 02:25:51 PDT 2010


On Tue, 27 Apr 2010, Ayvaz, James wrote:

> diff -uprN syslinux-3.86-vanilla/com32/modules/linux.c syslinux-3.86/com32/modules/linux.c

[...]

> +void linux_percent_progress_cb(const char* file, size_t cur, size_t total) {
> +    int percent = (int)(((float)cur / (float)total) * 100.0);

Is 'total' guaranteed to be nonzero?


Steffen




More information about the Syslinux mailing list