[Spice-devel] [PATCH 09/11] worker: fix some fields access

Frediano Ziglio fziglio at redhat.com
Thu Nov 12 06:04:37 PST 2015


> 
> On Wed, Nov 11, 2015 at 1:20 PM, Frediano Ziglio <fziglio at redhat.com> wrote:
> > From: Marc-André Lureau <marcandre.lureau at gmail.com>
> >
> > ---
> >  server/display-channel.c | 18 +++++++++---------
> >  1 file changed, 9 insertions(+), 9 deletions(-)
> >
> > diff --git a/server/display-channel.c b/server/display-channel.c
> > index 163f6b7..fbd8a0e 100644
> > --- a/server/display-channel.c
> > +++ b/server/display-channel.c
> > @@ -20,18 +20,18 @@
> >
> >  #include "display-channel.h"
> >
> > -void display_channel_compress_stats_reset(DisplayChannel *display_channel)
> > +void display_channel_compress_stats_reset(DisplayChannel *display)
> >  {
> > -    spice_return_if_fail(display_channel);
> > +    spice_return_if_fail(display);
> >
> >  #ifdef COMPRESS_STAT
> > -    stat_reset(&worker->display_channel->quic_stat);
> > -    stat_reset(&worker->display_channel->lz_stat);
> > -    stat_reset(&worker->display_channel->glz_stat);
> > -    stat_reset(&worker->display_channel->jpeg_stat);
> > -    stat_reset(&worker->display_channel->zlib_glz_stat);
> > -    stat_reset(&worker->display_channel->jpeg_alpha_stat);
> > -    stat_reset(&worker->display_channel->lz4_stat);
> > +    stat_reset(&display->quic_stat);
> > +    stat_reset(&display->lz_stat);
> > +    stat_reset(&display->glz_stat);
> > +    stat_reset(&display->jpeg_stat);
> > +    stat_reset(&display->zlib_glz_stat);
> > +    stat_reset(&display->jpeg_alpha_stat);
> > +    stat_reset(&display->lz4_stat);
> >  #endif
> >  }
> >
> > --
> > 2.4.3
> >
> > _______________________________________________
> > Spice-devel mailing list
> > Spice-devel at lists.freedesktop.org
> > http://lists.freedesktop.org/mailman/listinfo/spice-devel
> 
> Looks good. But I would squash this one to the next one. (Feel free to
> ignore the suggestion).
> 
Merged (squashed)

Frediano


More information about the Spice-devel mailing list