[PATCH] fixed a couple of compiler warnings
Bart Massey
bart at cs.pdx.edu
Sun Jan 25 15:07:37 PST 2009
---
src/xcb_xid.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/xcb_xid.c b/src/xcb_xid.c
index a23aac0..3df5dbe 100644
--- a/src/xcb_xid.c
+++ b/src/xcb_xid.c
@@ -25,6 +25,7 @@
/* XID allocators. */
+#include <assert.h>
#include <stdlib.h>
#include "xcb.h"
#include "xcbext.h"
@@ -59,7 +60,7 @@ uint32_t xcb_generate_id(xcb_connection_t *c)
xcb_xc_misc_get_xid_range(c), 0);
/* XXX The latter disjunct is what the server returns
when it is out of XIDs. Sweet. */
- if(!range || range->start_id == 0 && range->count == 1)
+ if(!range || (range->start_id == 0 && range->count == 1))
{
pthread_mutex_unlock(&c->xid.lock);
return -1;
--
1.5.6.5
------- =_aaaaaaaaaa0
Content-Type: text/plain;
name="0003-fixed-possible-accidental-return-of-error-indication.patch";
charset="us-ascii"
Content-ID: <12707.1234977193.4 at murzim.cs.pdx.edu>
More information about the Xcb
mailing list