[Spice-devel,1/4] server/red_worker: cleanup lines starting with 5 spaces

Submitted by Alon Levy on July 5, 2012, 4:42 p.m.

Details

Message ID 1341506554-10219-1-git-send-email-alevy@redhat.com
State Accepted
Commit 8ee952ef45c0eb69385264ffbc0083f27d419e22
Headers show

Not browsing as part of any series.

Commit Message

Alon Levy July 5, 2012, 4:42 p.m.
---
 server/red_worker.c |   26 +++++++++++++-------------
 1 file changed, 13 insertions(+), 13 deletions(-)

Patch hide | download patch | download mbox

diff --git a/server/red_worker.c b/server/red_worker.c
index ef1b1b1..3092218 100644
--- a/server/red_worker.c
+++ b/server/red_worker.c
@@ -6132,22 +6132,22 @@  static int red_jpeg_compress_image(DisplayChannelClient *dcc, SpiceImage *dest,
         return TRUE;
     }
 
-     lz_data->data.bufs_head = jpeg_data->data.bufs_tail;
-     lz_data->data.bufs_tail = lz_data->data.bufs_head;
+    lz_data->data.bufs_head = jpeg_data->data.bufs_tail;
+    lz_data->data.bufs_tail = lz_data->data.bufs_head;
 
-     comp_head_filled = jpeg_size % sizeof(lz_data->data.bufs_head->buf);
-     comp_head_left = sizeof(lz_data->data.bufs_head->buf) - comp_head_filled;
-     lz_out_start_byte = ((uint8_t *)lz_data->data.bufs_head->buf) + comp_head_filled;
+    comp_head_filled = jpeg_size % sizeof(lz_data->data.bufs_head->buf);
+    comp_head_left = sizeof(lz_data->data.bufs_head->buf) - comp_head_filled;
+    lz_out_start_byte = ((uint8_t *)lz_data->data.bufs_head->buf) + comp_head_filled;
 
-     lz_data->data.dcc = dcc;
+    lz_data->data.dcc = dcc;
 
-     lz_data->data.u.lines_data.chunks = src->data;
-     lz_data->data.u.lines_data.stride = src->stride;
-     lz_data->data.u.lines_data.next = 0;
-     lz_data->data.u.lines_data.reverse = 0;
-     lz_data->usr.more_lines = lz_usr_more_lines;
+    lz_data->data.u.lines_data.chunks = src->data;
+    lz_data->data.u.lines_data.stride = src->stride;
+    lz_data->data.u.lines_data.next = 0;
+    lz_data->data.u.lines_data.reverse = 0;
+    lz_data->usr.more_lines = lz_usr_more_lines;
 
-     alpha_lz_size = lz_encode(lz, LZ_IMAGE_TYPE_XXXA, src->x, src->y,
+    alpha_lz_size = lz_encode(lz, LZ_IMAGE_TYPE_XXXA, src->x, src->y,
                                !!(src->flags & SPICE_BITMAP_FLAGS_TOP_DOWN),
                                NULL, 0, src->stride,
                                lz_out_start_byte,
@@ -7838,7 +7838,7 @@  static void red_lossy_marshall_qxl_drawable(RedWorker *worker, RedChannelClient
     case QXL_DRAW_BLACKNESS:
         red_lossy_marshall_qxl_draw_blackness(worker, rcc, base_marshaller, dpi);
         break;
-     case QXL_DRAW_WHITENESS:
+    case QXL_DRAW_WHITENESS:
         red_lossy_marshall_qxl_draw_whiteness(worker, rcc, base_marshaller, dpi);
         break;
     case QXL_DRAW_INVERS:

Comments

ack

On Thu, Jul 5, 2012 at 6:42 PM, Alon Levy <alevy@redhat.com> wrote:
> ---
>  server/red_worker.c |   26 +++++++++++++-------------
>  1 file changed, 13 insertions(+), 13 deletions(-)
>
> diff --git a/server/red_worker.c b/server/red_worker.c
> index ef1b1b1..3092218 100644
> --- a/server/red_worker.c
> +++ b/server/red_worker.c
> @@ -6132,22 +6132,22 @@ static int red_jpeg_compress_image(DisplayChannelClient *dcc, SpiceImage *dest,
>          return TRUE;
>      }
>
> -     lz_data->data.bufs_head = jpeg_data->data.bufs_tail;
> -     lz_data->data.bufs_tail = lz_data->data.bufs_head;
> +    lz_data->data.bufs_head = jpeg_data->data.bufs_tail;
> +    lz_data->data.bufs_tail = lz_data->data.bufs_head;
>
> -     comp_head_filled = jpeg_size % sizeof(lz_data->data.bufs_head->buf);
> -     comp_head_left = sizeof(lz_data->data.bufs_head->buf) - comp_head_filled;
> -     lz_out_start_byte = ((uint8_t *)lz_data->data.bufs_head->buf) + comp_head_filled;
> +    comp_head_filled = jpeg_size % sizeof(lz_data->data.bufs_head->buf);
> +    comp_head_left = sizeof(lz_data->data.bufs_head->buf) - comp_head_filled;
> +    lz_out_start_byte = ((uint8_t *)lz_data->data.bufs_head->buf) + comp_head_filled;
>
> -     lz_data->data.dcc = dcc;
> +    lz_data->data.dcc = dcc;
>
> -     lz_data->data.u.lines_data.chunks = src->data;
> -     lz_data->data.u.lines_data.stride = src->stride;
> -     lz_data->data.u.lines_data.next = 0;
> -     lz_data->data.u.lines_data.reverse = 0;
> -     lz_data->usr.more_lines = lz_usr_more_lines;
> +    lz_data->data.u.lines_data.chunks = src->data;
> +    lz_data->data.u.lines_data.stride = src->stride;
> +    lz_data->data.u.lines_data.next = 0;
> +    lz_data->data.u.lines_data.reverse = 0;
> +    lz_data->usr.more_lines = lz_usr_more_lines;
>
> -     alpha_lz_size = lz_encode(lz, LZ_IMAGE_TYPE_XXXA, src->x, src->y,
> +    alpha_lz_size = lz_encode(lz, LZ_IMAGE_TYPE_XXXA, src->x, src->y,
>                                 !!(src->flags & SPICE_BITMAP_FLAGS_TOP_DOWN),
>                                 NULL, 0, src->stride,
>                                 lz_out_start_byte,
> @@ -7838,7 +7838,7 @@ static void red_lossy_marshall_qxl_drawable(RedWorker *worker, RedChannelClient
>      case QXL_DRAW_BLACKNESS:
>          red_lossy_marshall_qxl_draw_blackness(worker, rcc, base_marshaller, dpi);
>          break;
> -     case QXL_DRAW_WHITENESS:
> +    case QXL_DRAW_WHITENESS:
>          red_lossy_marshall_qxl_draw_whiteness(worker, rcc, base_marshaller, dpi);
>          break;
>      case QXL_DRAW_INVERS:
> --
> 1.7.10.1
>
> _______________________________________________
> Spice-devel mailing list
> Spice-devel@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel