[Spice-devel] [qxl] server: Convert qxl->monitors_config to a QXLPHYSICAL using physical_address()

Christophe Fergeau cfergeau at redhat.com
Mon Jan 11 03:20:09 PST 2016


Acked-by: Christophe Fergeau <cfergeau at redhat.com>

and pushed, thanks!

Christophe

On Mon, Jan 11, 2016 at 02:21:50AM +0100, Francois Gouget wrote:
> This avoids compilation errors with -Werror on 32 bit systems and is
> more correct than a direct cast.
> 
> Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
> ---
>  src/spiceqxl_display.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/spiceqxl_display.c b/src/spiceqxl_display.c
> index a3a8978..c3609d8 100644
> --- a/src/spiceqxl_display.c
> +++ b/src/spiceqxl_display.c
> @@ -350,6 +350,6 @@ void qxl_add_spice_display_interface(qxl_screen_t *qxl)
>  
>  void spiceqxl_display_monitors_config(qxl_screen_t *qxl)
>  {
> -    spice_qxl_monitors_config_async(&qxl->display_sin, (QXLPHYSICAL)qxl->monitors_config,
> +    spice_qxl_monitors_config_async(&qxl->display_sin, physical_address(qxl, qxl->monitors_config, 0),
>                                      MEMSLOT_GROUP, 0);
>  }
> -- 
> 2.6.4
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20160111/4c44562a/attachment.sig>


More information about the Spice-devel mailing list