From: Pierre-Marc Fournier Date: Tue, 23 Mar 2010 04:15:08 +0000 (-0400) Subject: replace hardcoded value with define X-Git-Tag: v0.5~47 X-Git-Url: http://git.lttng.org/?p=ust.git;a=commitdiff_plain;h=2f03197d3d05b272f82ed261a0a7b2bbb2f66ab0 replace hardcoded value with define --- diff --git a/libustcomm/multipoll.c b/libustcomm/multipoll.c index db9c2ec..1ac51a5 100644 --- a/libustcomm/multipoll.c +++ b/libustcomm/multipoll.c @@ -30,8 +30,8 @@ int multipoll_init(struct mpentries *ent) ent->n_used = 0; ent->n_avail = INITIAL_N_AVAIL; - ent->pollfds = (struct pollfd *) malloc(sizeof(struct pollfd) * 16); - ent->extras = (struct pollfd_extra *) malloc(sizeof(struct pollfd_extra) * 16); + ent->pollfds = (struct pollfd *) malloc(sizeof(struct pollfd) * INITIAL_N_AVAIL); + ent->extras = (struct pollfd_extra *) malloc(sizeof(struct pollfd_extra) * INITIAL_N_AVAIL); return 0; }