From 2f03197d3d05b272f82ed261a0a7b2bbb2f66ab0 Mon Sep 17 00:00:00 2001 From: Pierre-Marc Fournier Date: Tue, 23 Mar 2010 00:15:08 -0400 Subject: [PATCH] replace hardcoded value with define --- libustcomm/multipoll.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.34.1