move qa/ to tools/
[archipelago] / xseg / xq / xq.h
index f93eeb6..03910d8 100644 (file)
@@ -1,17 +1,16 @@
 #ifndef _XQ_H
 #define _XQ_H
 
-typedef unsigned int xqindex;
+#include <sys/util.h>
 
-#define None (xqindex)-1
+typedef uint32_t xqindex;
 
-#include <sys/util.h>
 #include "xq_lock.h"
 
 struct xq {
         struct xq_lock lock;
         xqindex head, tail;
-        xqindex *queue;
+        XPTR_TYPE(xqindex) queue;
         xqindex size;
 };