[syslinux] isohybrid.c:409: warning: cast from pointer to integer of different size

P J P pj.pandit at yahoo.co.in
Tue May 4 22:28:53 PDT 2010


--- On Tue, 4/5/10, H. Peter Anvin <hpa at zytor.com> wrote:
> in this case to print the actual pointer value; just print
> the offset (i).
> 
> +    const char banner[] = "\0CD001\1EL TORITO
> SPECIFICATION\0\0\0\0\0\0\0\0" \
> +
> "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0";
> 
> That should be "static const".
> 

Please see: http://pjp.dgplug.org/tools/syslinux-3.86-isohybrid.patch.10

Changes:

   - display_mbr() prints byte offset instead of the pointer address.
   - banner string in check_banner() is made static.


Thanks.
---
Regards
    -P J P
PS: Please don't send me html/attachment/Fwd mails






More information about the Syslinux mailing list