projects
/
libusual.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd521e4
)
event: remove usage of zmalloc
author
Marko Kreen
<markokr@gmail.com>
Fri, 23 Jul 2010 10:05:27 +0000
(13:05 +0300)
committer
Marko Kreen
<markokr@gmail.com>
Sat, 11 Sep 2010 08:31:05 +0000
(11:31 +0300)
usual/event.c
patch
|
blob
|
blame
|
history
diff --git
a/usual/event.c
b/usual/event.c
index b28b3e5623ba8e7c08459888dc76a5803be31787..183ff5da1443c0daa34beaa42e0d490a8d4106bd 100644
(file)
--- a/
usual/event.c
+++ b/
usual/event.c
@@
-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;