Re: [spice-gtk v4 01/24] file-xfer: task-id to start with 1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Acked-by: Jonathon Jongsma <jjongsma@xxxxxxxxxx>


On Thu, 2016-06-23 at 19:37 +0200, Victor Toso wrote:
> As this is unsigned, we can let 0 be in case of error
> ---
>  src/channel-main.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/channel-main.c b/src/channel-main.c
> index 3d6ac2f..1e4853e 100644
> --- a/src/channel-main.c
> +++ b/src/channel-main.c
> @@ -3435,7 +3435,7 @@ spice_file_transfer_task_init(SpiceFileTransferTask
> *self)
>  static SpiceFileTransferTask *
>  spice_file_transfer_task_new(SpiceMainChannel *channel, GFile *file,
> GCancellable *cancellable)
>  {
> -    static uint32_t xfer_id = 0;    /* Used to identify task id */
> +    static uint32_t xfer_id = 1;    /* Used to identify task id */
>  
>      return g_object_new(SPICE_TYPE_FILE_TRANSFER_TASK,
>                          "id", xfer_id++,
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]