1. uranium
  2. shadowircd

Commits

Jilles Tjoelker  committed fb64c12

Fix --disable-balloc.

libratbox r26769

Comments (0)

Files changed (2)

File libratbox/src/balloc.c Modified

View file
  • Ignore whitespace
  • Hide word diff
 	if(desc != NULL)
 		*desc = bh->desc;
 #else
-	static char *noballoc = "no blockheap";
-	*bused = 0;
-	*bfree = 0;
-	*bmemusage = 0;
-	*desc = noballoc;
+	if(bused != NULL)
+		*bused = 0;
+	if(bfree != NULL)
+		*bfree = 0;
+	if(bmemusage != NULL)
+		*bmemusage = 0;
+	if(desc != NULL)
+		*desc = "no blockheap";
 #endif
 }
 

File libratbox/src/linebuf.c Modified

View file
  • Ignore whitespace
  • Hide word diff
 #include <ratbox_lib.h>
 #include <commio-int.h>
 
-#ifndef NOBALLOC
 static rb_bh *rb_linebuf_heap;
-#endif
 
 static int bufline_count = 0;