All about uncasted MALLOC()s when it is defined to dbg_malloc().
struct mpentry *
alloc_mpe (void)
{
- struct mpentry * mpe = MALLOC(sizeof(struct mpentry));
+ struct mpentry * mpe = (struct mpentry *)
+ MALLOC(sizeof(struct mpentry));
return mpe;
}
static struct hwentry *
alloc_hwe (void)
{
- struct hwentry * hwe = MALLOC(sizeof(struct hwentry));
+ struct hwentry * hwe = (struct hwentry *)
+ MALLOC(sizeof(struct hwentry));
return hwe;
}
static struct key *
alloc_key (void)
{
- return MALLOC(sizeof(struct key));
+ return (struct key *)MALLOC(sizeof(struct key));
}
static struct handler *
alloc_handler (void)
{
- return MALLOC(sizeof(struct handler));
+ return (struct handler *)MALLOC(sizeof(struct handler));
}
static int
struct event_thread * wp;
- wp = MALLOC(sizeof(struct event_thread));
+ wp = (struct event_thread *)MALLOC(sizeof(struct event_thread));
return wp;
}
static struct paths *
init_paths (void)
{
- struct paths *allpaths;
+ struct paths * allpaths;
- allpaths = MALLOC(sizeof(struct paths));
+ allpaths = (struct paths *)MALLOC(sizeof(struct paths));
if (!allpaths)
return NULL;
prepare_namespace(void)
{
mode_t mode = S_IRWXU;
- struct stat *buf;
+ struct stat * buf;
char ramfs_args[64];
int i;
int fd;
size_t size = 10;
struct stat statbuf;
- buf = MALLOC(sizeof(struct stat));
+ buf = (struct stat *)MALLOC(sizeof(struct stat));
/*
* create a temp mount point for ramfs