[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 12/14] size_t is unsigned, so (foo >= 0) is always t
From: |
Jes . Sorensen |
Subject: |
[Qemu-devel] [PATCH 12/14] size_t is unsigned, so (foo >= 0) is always true |
Date: |
Mon, 30 Aug 2010 17:35:45 +0200 |
From: Jes Sorensen <address@hidden>
Signed-off-by: Jes Sorensen <address@hidden>
---
ui/vnc-enc-tight.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/ui/vnc-enc-tight.c b/ui/vnc-enc-tight.c
index c4c9c3b..df975af 100644
--- a/ui/vnc-enc-tight.c
+++ b/ui/vnc-enc-tight.c
@@ -926,7 +926,7 @@ static int send_full_color_rect(VncState *vs, int x, int y,
int w, int h)
tight_conf[vs->tight.compression].raw_zlib_level,
Z_DEFAULT_STRATEGY);
- return (bytes >= 0);
+ return 1;
}
static int send_solid_rect(VncState *vs)
@@ -1001,7 +1001,7 @@ static int send_mono_rect(VncState *vs, int x, int y,
vs->tight.tight.offset = bytes;
bytes = tight_compress_data(vs, stream, bytes, level, Z_DEFAULT_STRATEGY);
- return (bytes >= 0);
+ return 1;
}
struct palette_cb_priv {
@@ -1057,7 +1057,7 @@ static bool send_gradient_rect(VncState *vs, int x, int
y, int w, int h)
bytes = tight_compress_data(vs, stream, bytes,
level, Z_FILTERED);
- return (bytes >= 0);
+ return 1;
}
static int send_palette_rect(VncState *vs, int x, int y,
@@ -1118,7 +1118,7 @@ static int send_palette_rect(VncState *vs, int x, int y,
bytes = tight_compress_data(vs, stream, bytes,
level, Z_DEFAULT_STRATEGY);
- return (bytes >= 0);
+ return 1;
}
#if defined(CONFIG_VNC_JPEG) || defined(CONFIG_VNC_PNG)
--
1.7.2.2
- [Qemu-devel] [PATCH 07/14] Remove unused argument for get_whole_cluster(), (continued)
- [Qemu-devel] [PATCH 07/14] Remove unused argument for get_whole_cluster(), Jes . Sorensen, 2010/08/30
- [Qemu-devel] [PATCH 03/14] Fix repeated typo: was "end if list" instead of "end of list", Jes . Sorensen, 2010/08/30
- [Qemu-devel] [PATCH 04/14] Zero initialize timespec struct explicitly, Jes . Sorensen, 2010/08/30
- [Qemu-devel] Re: [PATCH 04/14] Zero initialize timespec struct explicitly, Anthony Liguori, 2010/08/30
- Re: [Qemu-devel] Re: [PATCH 04/14] Zero initialize timespec struct explicitly, malc, 2010/08/30
- Re: [Qemu-devel] Re: [PATCH 04/14] Zero initialize timespec struct explicitly, Jes Sorensen, 2010/08/30
- Re: [Qemu-devel] Re: [PATCH 04/14] Zero initialize timespec struct explicitly, Anthony Liguori, 2010/08/30
- Re: [Qemu-devel] Re: [PATCH 04/14] Zero initialize timespec struct explicitly, malc, 2010/08/30
[Qemu-devel] [PATCH 12/14] size_t is unsigned, so (foo >= 0) is always true,
Jes . Sorensen <=
Re: [Qemu-devel] [PATCH 00/14] gcc extra warning fixes, Blue Swirl, 2010/08/30