[Spice-devel,v2,3/7] server/red_worker/red_process_commands: rename drawable to red_drawable (later add a local drawable)

Submitted by Alon Levy on May 15, 2012, 10:58 a.m.

Details

Message ID 1337079514-25271-4-git-send-email-alevy@redhat.com
State New
Headers show

Not browsing as part of any series.

Commit Message

Alon Levy May 15, 2012, 10:58 a.m.
---
 server/red_worker.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Patch hide | download patch | download mbox

diff --git a/server/red_worker.c b/server/red_worker.c
index 4304f29..e1c86fa 100644
--- a/server/red_worker.c
+++ b/server/red_worker.c
@@ -4843,15 +4843,15 @@  static int red_process_commands(RedWorker *worker, uint32_t max_pipe_size, int *
         worker->repoll_cmd_ring = 0;
         switch (ext_cmd.cmd.type) {
         case QXL_CMD_DRAW: {
-            RedDrawable *drawable = red_drawable_new(); // returns with 1 ref
+            RedDrawable *red_drawable = red_drawable_new(); // returns with 1 ref
 
             if (red_get_drawable(&worker->mem_slots, ext_cmd.group_id,
-                                 drawable, ext_cmd.cmd.data, ext_cmd.flags)) {
+                                 red_drawable, ext_cmd.cmd.data, ext_cmd.flags)) {
                 break;
             }
-            red_process_drawable(worker, drawable, ext_cmd.group_id);
+            red_process_drawable(worker, red_drawable, ext_cmd.group_id);
             // release the red_drawable
-            put_red_drawable(worker, drawable, ext_cmd.group_id, NULL);
+            put_red_drawable(worker, red_drawable, ext_cmd.group_id, NULL);
             break;
         }
         case QXL_CMD_UPDATE: {