From: Pierre-Marc Fournier Date: Tue, 23 Mar 2010 04:15:08 +0000 (-0400) Subject: replace hardcoded value with define X-Git-Tag: v1.9.1~625 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=2f03197d3d05b272f82ed261a0a7b2bbb2f66ab0;p=lttng-ust.git replace hardcoded value with define --- diff --git a/libustcomm/multipoll.c b/libustcomm/multipoll.c index db9c2ec9..1ac51a58 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; }