prevent some compiler warnings
authorTony Cook <tony@develop=help.com>
Thu, 14 Sep 2006 07:19:58 +0000 (07:19 +0000)
committerTony Cook <tony@develop=help.com>
Thu, 14 Sep 2006 07:19:58 +0000 (07:19 +0000)
alloc.c
queue.c

diff --git a/alloc.c b/alloc.c
index 8bc037cf314bf5d25dcf334fd13d1b97caf716a2..d2bee611015e94e491fe748cae37f8778a2fb798 100644 (file)
--- a/alloc.c
+++ b/alloc.c
@@ -8,16 +8,17 @@
 char const *last_file; int last_line;
 
 static void do_log(int level, char const *fmt, ...);
+
+#define mm_log(x) ((last_file = __FILE__), (last_line = __LINE__), do_log x )
+
+#ifdef MEM_DEBUG
+
 static
 void
 bndcheck(int idx);
 void
 bndcheck_all(void);
 
-#define mm_log(x) ((last_file = __FILE__), (last_line = __LINE__), do_log x )
-
-#ifdef MEM_DEBUG
-
 #define MAXMAL 102400
 #define MAXDESC 65
 
diff --git a/queue.c b/queue.c
index 6468fcd71d9fd7c0ae7aa5f5fd637ff17117ca19..9f6e7885864ac7a7a550a45e5c7ffb505147e4ac 100644 (file)
--- a/queue.c
+++ b/queue.c
@@ -252,7 +252,7 @@ pq_move_items(poe_queue *pq, int target, int src, int count) {
       ++die;\r
     }\r
     if (target + count > pq->alloc) {\r
-      fprintf(stderr, "target %d + count %d > alloc\n", target, count, pq->alloc);\r
+      fprintf(stderr, "target %d + count %d > alloc %d\n", target, count, pq->alloc);\r
       ++die;\r
     }\r
     if (die) *(char *)0 = '\0';\r