From: Martin Molnar Date: Wed, 11 Jun 2008 16:14:24 +0000 (+0200) Subject: Compilation fixes X-Git-Url: https://rtime.felk.cvut.cz/gitweb/frescor/fwp.git/commitdiff_plain/03df59796b8275f66f27b8c361db8ff05542566a Compilation fixes --- diff --git a/fwp/lib/core/fwp_endpoint.c b/fwp/lib/core/fwp_endpoint.c index a15f79c..985b642 100644 --- a/fwp/lib/core/fwp_endpoint.c +++ b/fwp/lib/core/fwp_endpoint.c @@ -393,8 +393,6 @@ next_connection: sizeof(int)*(epoint->nr_connections -i-1)); } } - - goto next_connection; } /** diff --git a/fwp/lib/core/fwp_vres.c b/fwp/lib/core/fwp_vres.c index b00ba77..b363ad9 100644 --- a/fwp/lib/core/fwp_vres.c +++ b/fwp/lib/core/fwp_vres.c @@ -306,7 +306,7 @@ static void* fwp_vres_tx_thread(void *_vres) curr_budget = 0; while ((curr_budget < budget)&& (msgb = fwp_msgq_dequeue(msgq))) { - rc = __fwp_vres_send(ac_sockd, msgb); + rc = __fwp_vres_send(vres->ac_sockd, msgb); if (!(rc < 0)) { FWP_DEBUG("Message sent through AC%d\n",ac_id); /* Switch to this in the future @@ -345,9 +345,10 @@ int _fwp_vres_send(fwp_vres_d_t vresd, struct fwp_msgb* msgb) return -EPERM; } -int _fwp_vres_bind(fwp_vres_d_t vresd, fwp_endpoint_d_t epointd) +int _fwp_vres_bind(fwp_vres_d_t vresd, fwp_endpoint_d_t epointd, int sockd) { fwp_vres_t *vres = vresd; + fwp_endpoint_t *epoint = epointd; int rv = 0; pthread_mutex_lock(&fwp_vres_table.lock); @@ -355,6 +356,8 @@ int _fwp_vres_bind(fwp_vres_d_t vresd, fwp_endpoint_d_t epointd) rv = -EPERM; else { vres->epointd = epointd; + /*TODO*/ + vres->ac_sockd = sockd; vres->status = FWP_VRES_BOUND; } pthread_mutex_unlock(&fwp_vres_table.lock);