[MPlayer-cvslog] r25187 - trunk/stream/vcd_read_win32.h
Rich Felker
dalias at aerifal.cx
Wed Nov 28 18:12:49 CET 2007
On Wed, Nov 28, 2007 at 12:36:23PM +0100, zuxy wrote:
> Author: zuxy
> Date: Wed Nov 28 12:36:23 2007
> New Revision: 25187
>
> Log:
> Avoid gcc warning:
> vcd_read_win32.h:61: warning: format '%u' expects type 'unsigned int',
> but argument 4 has type 'DWORD'
>
>
> Modified:
> trunk/stream/vcd_read_win32.h
>
> Modified: trunk/stream/vcd_read_win32.h
> ==============================================================================
> --- trunk/stream/vcd_read_win32.h (original)
> +++ trunk/stream/vcd_read_win32.h Wed Nov 28 12:36:23 2007
> @@ -57,7 +57,7 @@ mp_vcd_priv_t* vcd_read_toc(int fd)
> hd = (HANDLE)_get_osfhandle(fd);
> if (!DeviceIoControl(hd, IOCTL_CDROM_READ_TOC, NULL, 0, &vcd->toc,
> sizeof(CDROM_TOC), &dwBytesReturned, NULL)) {
> - mp_msg(MSGT_OPEN, MSGL_ERR, "read CDROM toc header: %u\n",
> + mp_msg(MSGT_OPEN, MSGL_ERR, "read CDROM toc header: %lu\n",
I suppose this code is windows-specific, but it would be nice to fix
the type, e.g. casting to int and using %u or int32_t and using PRI
macros.
Rich
More information about the MPlayer-cvslog
mailing list