#include <stdio.h>
#include <errno.h>
-#include <assert.h>
-#include <malloc.h>
#include <stdlib.h>
#include <limits.h>
+#include <babeltrace/assert-internal.h>
#define BT_GETLINE_MINBUFLEN 64
/* ferror() is set, errno set by fgetc(). */
return -1;
}
- assert(feof(stream));
+ BT_ASSERT(feof(stream));
found_eof = 1;
break;
}