event: remove usage of zmalloc
authorMarko Kreen <markokr@gmail.com>
Fri, 23 Jul 2010 10:05:27 +0000 (13:05 +0300)
committerMarko Kreen <markokr@gmail.com>
Sat, 11 Sep 2010 08:31:05 +0000 (11:31 +0300)
usual/event.c

index b28b3e5623ba8e7c08459888dc76a5803be31787..183ff5da1443c0daa34beaa42e0d490a8d4106bd 100644 (file)
@@ -258,7 +258,7 @@ struct event_base *event_base_new(void)
        struct event_base *base;
        int i;
 
-       base = zmalloc(sizeof(*base));
+       base = calloc(1, sizeof(*base));
        if (!base)
                return NULL;
 
@@ -742,7 +742,7 @@ int event_base_once(struct event_base *base, int fd, short flags,
                return -1;
        }
 
-       once = zmalloc(sizeof(*once));
+       once = calloc(1, sizeof(*once));
        if (!once)
                return -1;