summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Toso <victortoso@redhat.com>2016-06-22 18:41:06 +0200
committerVictor Toso <victortoso@redhat.com>2016-07-07 16:19:23 +0200
commit827148c19a7f1208bddf73355849228c8f725db5 (patch)
tree13dae5838eccb0cef23825b2774c51aebef5f6cb
parentf6072e678ea5e4f81a7f684ff4c69a8b926f7f3c (diff)
main: use xfer_task instead of task or self
Another patch to rename variable and keep consistency across channel-main. Let's avoid task which is common for GTask and self for non SpiceMainChannel objects Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
-rw-r--r--src/channel-main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/channel-main.c b/src/channel-main.c
index 31b01a3..5f01638 100644
--- a/src/channel-main.c
+++ b/src/channel-main.c
@@ -1880,20 +1880,20 @@ static void file_xfer_data_flushed_cb(GObject *source_object,
GAsyncResult *res,
gpointer user_data)
{
- SpiceFileTransferTask *self = user_data;
+ SpiceFileTransferTask *xfer_task = user_data;
SpiceMainChannel *channel = (SpiceMainChannel *)source_object;
GError *error = NULL;
file_xfer_flush_finish(channel, res, &error);
if (error) {
- spice_file_transfer_task_completed(self, error);
+ spice_file_transfer_task_completed(xfer_task, error);
return;
}
- file_transfer_operation_send_progress(self);
+ file_transfer_operation_send_progress(xfer_task);
/* Read more data */
- spice_file_transfer_task_read_async(self, file_xfer_read_async_cb, NULL);
+ spice_file_transfer_task_read_async(xfer_task, file_xfer_read_async_cb, NULL);
}
static void file_xfer_queue_msg_to_agent(SpiceMainChannel *channel,