On Thu, Dec 10, 2015 at 01:04:28AM +0100, Marc-André Lureau wrote: > This is useful in the following patches to count the number of replies > to wait for. > > Signed-off-by: Marc-André Lureau <marcandre.lureau@xxxxxxxxx> > --- > server/red-channel.c | 21 +++++++++++++-------- > server/red-channel.h | 2 +- > 2 files changed, 14 insertions(+), 9 deletions(-) > > diff --git a/server/red-channel.c b/server/red-channel.c > index fcbe868..ff1411f 100644 > --- a/server/red-channel.c > +++ b/server/red-channel.c > @@ -2233,14 +2233,14 @@ int red_client_during_migrate_at_target(RedClient *client) > typedef void (*rcc_item_t)(RedChannelClient *rcc, PipeItem *item); > typedef int (*rcc_item_cond_t)(RedChannelClient *rcc, PipeItem *item); > > -static void red_channel_pipes_create_batch(RedChannel *channel, > - new_pipe_item_t creator, void *data, > - rcc_item_t callback) > +static int red_channel_pipes_create_batch(RedChannel *channel, > + new_pipe_item_t creator, void *data, > + rcc_item_t callback) It seems like this can never get negative, so maybe size_t? (or unsigned int) Christophe
Attachment:
signature.asc
Description: PGP signature
_______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/spice-devel