mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-13 05:33:51 -04:00
Convert most dynamic allocations to use functions from xmalloc.h
This commit is contained in:
parent
ecb2695822
commit
7a77958ba2
21 changed files with 133 additions and 68 deletions
3
reaper.c
3
reaper.c
|
|
@ -10,6 +10,7 @@
|
|||
#define LOG_ENABLE_DBG 0
|
||||
#include "log.h"
|
||||
#include "tllist.h"
|
||||
#include "xmalloc.h"
|
||||
|
||||
struct reaper {
|
||||
struct fdm *fdm;
|
||||
|
|
@ -39,7 +40,7 @@ reaper_init(struct fdm *fdm)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
struct reaper *reaper = malloc(sizeof(*reaper));
|
||||
struct reaper *reaper = xmalloc(sizeof(*reaper));
|
||||
*reaper = (struct reaper){
|
||||
.fdm = fdm,
|
||||
.fd = fd,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue