* headers, so must come before those */
#include "lfs.h"
+#include <assert.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/stat.h>
}
}
for(j=0;j<p_size;j++) {
- g_assert(p[j].target != NULL);
- g_assert(p[j].ptype==PARAM_INT||p[j].ptype==PARAM_STRING||p[j].ptype==PARAM_BOOL||p[j].ptype==PARAM_INT64);
+ assert(p[j].target != NULL);
+ assert(p[j].ptype==PARAM_INT||p[j].ptype==PARAM_STRING||p[j].ptype==PARAM_BOOL||p[j].ptype==PARAM_INT64);
switch(p[j].ptype) {
case PARAM_INT:
ival = g_key_file_get_integer(cfile,
}
/* end should never go negative, since first startoff is 0 and a >= 0 */
- g_assert(end >= 0);
+ assert(end >= 0);
fi = g_array_index(export, FILE_INFO, end);
*fhandle = fi.fhandle;
uint64_t magic;
memset(zeros, '\0', sizeof(zeros));
- g_assert(((phase & NEG_INIT) && (phase & NEG_MODERN)) || client);
+ assert(((phase & NEG_INIT) && (phase & NEG_MODERN)) || client);
if(phase & NEG_INIT) {
/* common */
if (write(net, INIT_PASSWD, 8) < 0) {