[PATCH 10/12] list: Avoid using X types

Adam Jackson ajax at redhat.com
Tue Oct 16 11:56:23 PDT 2012


In particular, Bool.  This is not an ABI break:

/usr/include/X11/Xdefs.h:typedef int Bool;

Signed-off-by: Adam Jackson <ajax at redhat.com>
---
 include/list.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/list.h b/include/list.h
index 2d48a86..6af6827 100644
--- a/include/list.h
+++ b/include/list.h
@@ -213,7 +213,7 @@ xorg_list_del(struct xorg_list *entry)
  *
  * @return True if the list contains one or more elements or False otherwise.
  */
-static inline Bool
+static inline int
 xorg_list_is_empty(struct xorg_list *head)
 {
     return head->next == head;
-- 
1.7.12.1



More information about the xorg-devel mailing list