use scalloc instead of some places where calloc was still used

This commit is contained in:
Michael Stapelberg
2010-03-02 14:42:24 +01:00
parent aae824b1f3
commit d08ec00329
3 changed files with 6 additions and 6 deletions

View File

@ -201,13 +201,13 @@ void ipc_new_client(EV_P_ struct ev_io *w, int revents) {
set_nonblock(client);
struct ev_io *package = calloc(sizeof(struct ev_io), 1);
struct ev_io *package = scalloc(sizeof(struct ev_io));
ev_io_init(package, ipc_receive_message, client, EV_READ);
ev_io_start(EV_A_ package);
DLOG("IPC: new client connected\n");
struct ipc_client *new = calloc(sizeof(struct ipc_client), 1);
struct ipc_client *new = scalloc(sizeof(struct ipc_client));
new->fd = client;
TAILQ_INSERT_TAIL(&all_clients, new, clients);