]> rtime.felk.cvut.cz Git - frescor/fwp.git/blobdiff - fwp/lib/frsh_fwp/fwp_fna.c
Remove unused flags parameter of fwp_send()
[frescor/fwp.git] / fwp / lib / frsh_fwp / fwp_fna.c
index 978c0cee4704953efcc7eb29939146fc71690d86..e26dd26504e43a026f20ae661e6427ff944be0bb 100644 (file)
@@ -84,10 +84,15 @@ int fwp_fna_send_endpoint_created(fna_endpoint_data_t  *endpoint)
        fwp_endpoint_attr_t *attr;
        fwp_endpoint_t *fwp_epoint;
        int rv;
-
+       frsh_send_endpoint_protocol_info_t *spi;
+       
        node = (unsigned int) endpoint->destination;
        port = (unsigned int) endpoint->stream_id;
-       attr = (fwp_endpoint_attr_t*) endpoint->endpoint_protocol_info.send.body; 
+       attr = NULL;
+       
+       spi = &endpoint->endpoint_protocol_info.send;
+       if (spi->size == sizeof(fwp_endpoint_attr_t))
+               attr = (fwp_endpoint_attr_t*)spi->body; 
        rv = fwp_send_endpoint_create(node, port, attr, &fwp_epoint);
        endpoint->protocol_info.body = fwp_epoint;
        return rv;
@@ -136,20 +141,18 @@ int fwp_fna_send(const fna_endpoint_data_t *endpoint, const void *msg,
                        const size_t size)
 {
        fwp_endpoint_t *fwp_epoint;
-       int flags = 0;
 
        fwp_epoint = endpoint->protocol_info.body;
-       return fwp_send(fwp_epoint, msg, size, flags);
+       return fwp_send(fwp_epoint, msg, size);
 }
 
 int fwp_fna_send_sync(const fna_endpoint_data_t *endpoint, const void *msg, 
                        const size_t size)
 {
        fwp_endpoint_t *fwp_epoint;
-       int flags = 0;
 
        fwp_epoint = endpoint->protocol_info.body;
-       return fwp_send(fwp_epoint, msg, size, flags);
+       return fwp_send(fwp_epoint, msg, size);
 }
 
 int fwp_fna_send_async(const fna_endpoint_data_t *endpoint,const void *msg,
@@ -157,8 +160,8 @@ int fwp_fna_send_async(const fna_endpoint_data_t *endpoint,const void *msg,
 {
        fwp_endpoint_t *fwp_epoint;
 
-       fwp_epoint = (fwp_endpoint_t*) endpoint->protocol_info.body;
-       return fwp_send(fwp_epoint, msg, size, MSG_DONTWAIT);
+       fwp_epoint = (fwp_endpoint_t*) endpoint->protocol_info.body;    
+       return fwp_send(fwp_epoint, msg, size); /* FIXME */
 }
 
 /** FNA receive routines */