> > On Thu, 2016-08-04 at 16:17 -0500, Jonathon Jongsma wrote: > > From: Frediano Ziglio <fziglio@xxxxxxxxxx> > > > > This reduce function and void to change an object in a function > > which is supposed just to create a new object > > The commit looks OK, but this description is quite confusing. Did you > mean "avoid" instead of "void"? Perhaps: > > "This reduces the number of arguments that need to be passed to the > function, and also avoids changing a different object within a function > that is supposed to just create a new object"? > Yes, that's perfect. void was a typo, I meant avoid. Frediano > > > > > Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx> > > --- > > server/cursor-channel.c | 2 +- > > server/dcc.c | 3 ++- > > server/red-worker.c | 2 -- > > server/red-worker.h | 1 - > > 4 files changed, 3 insertions(+), 5 deletions(-) > > > > diff --git a/server/cursor-channel.c b/server/cursor-channel.c > > index 7649904..2621c5f 100644 > > --- a/server/cursor-channel.c > > +++ b/server/cursor-channel.c > > @@ -390,13 +390,13 @@ static CursorChannelClient* > > cursor_channel_client_new(CursorChannel *cursor, > > (CursorChannelClient*)common_graphics_channel_new_client(&cu > > rsor->common, > > siz > > eof(CursorChannelClient), > > cli > > ent, stream, > > - mig > > _target, > > FAL > > SE, > > com > > mon_caps, > > num > > _common_caps, > > cap > > s, > > num > > _caps); > > spice_return_val_if_fail(ccc != NULL, NULL); > > + cursor->common.during_target_migrate = mig_target; > > > > ring_init(&ccc->cursor_cache_lru); > > ccc->cursor_cache_available = CLIENT_CURSOR_CACHE_SIZE; > > diff --git a/server/dcc.c b/server/dcc.c > > index c1c30c6..81ae4ed 100644 > > --- a/server/dcc.c > > +++ b/server/dcc.c > > @@ -366,9 +366,10 @@ DisplayChannelClient *dcc_new(DisplayChannel > > *display, > > > > dcc = (DisplayChannelClient*)common_graphics_channel_new_client( > > COMMON_GRAPHICS_CHANNEL(display), > > sizeof(DisplayChannelClient), > > - client, stream, mig_target, TRUE, > > + client, stream, TRUE, > > common_caps, num_common_caps, > > caps, num_caps); > > + display->common.during_target_migrate = mig_target; > > dcc->id = display->common.qxl->id; > > spice_return_val_if_fail(dcc, NULL); > > spice_info("New display (client %p) dcc %p stream %p", client, > > dcc, stream); > > diff --git a/server/red-worker.c b/server/red-worker.c > > index f15f67a..8f9c8dd 100644 > > --- a/server/red-worker.c > > +++ b/server/red-worker.c > > @@ -445,7 +445,6 @@ CommonGraphicsChannelClient > > *common_graphics_channel_new_client(CommonGraphicsCh > > int > > size, > > RedC > > lient *client, > > Reds > > Stream *stream, > > - int > > mig_target, > > int > > monitor_latency, > > uint > > 32_t *common_caps, > > int > > num_common_caps, > > @@ -458,7 +457,6 @@ CommonGraphicsChannelClient > > *common_graphics_channel_new_client(CommonGraphicsCh > > if (!rcc) { > > return NULL; > > } > > - common->during_target_migrate = mig_target; > > return (CommonGraphicsChannelClient*)rcc; > > } > > > > diff --git a/server/red-worker.h b/server/red-worker.h > > index 63be8b5..318a004 100644 > > --- a/server/red-worker.h > > +++ b/server/red-worker.h > > @@ -104,7 +104,6 @@ CommonGraphicsChannelClient > > *common_graphics_channel_new_client(CommonGraphicsCh > > int > > size, > > RedC > > lient *client, > > Reds > > Stream *stream, > > - int > > mig_target, > > int > > monitor_latency, > > uint > > 32_t *common_caps, > > int > > num_common_caps, > _______________________________________________ > Spice-devel mailing list > Spice-devel@xxxxxxxxxxxxxxxxxxxxx > https://lists.freedesktop.org/mailman/listinfo/spice-devel > _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/spice-devel