]> rtime.felk.cvut.cz Git - frescor/fwp.git/commitdiff
Remove unused flags parameter of fwp_send()
authorMichal Sojka <sojkam1@fel.cvut.cz>
Mon, 2 Nov 2009 15:03:01 +0000 (16:03 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Mon, 2 Nov 2009 15:05:49 +0000 (16:05 +0100)
fwp/lib/frsh_fwp/fwp_fna.c
fwp/lib/fwp/fwp_endpoint.c
fwp/lib/fwp/fwp_endpoint.h
fwp/lib/fwp/tests/fwp_prototest/fwp_sendrecv_test1.c
fwp/lib/fwp/tests/fwp_prototest/fwp_sendrecv_test2.c
fwp/lib/fwp/tests/fwp_vrestest/fwp_vrestest1.c
fwp/lib/fwp/tests/fwp_vrestest/fwp_vrestest2.c

index 1c9a7e8e868340b76b4ae029cc15d25354fb16ee..e26dd26504e43a026f20ae661e6427ff944be0bb 100644 (file)
@@ -141,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,
@@ -162,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 */
index 61af6ad5c471b54329d346649ebb206c2783647a..8418b5388bb755570be893660c21e6422db13d70 100644 (file)
@@ -580,8 +580,7 @@ ssize_t fwp_recv(fwp_endpoint_d_t epointd,
  * On error, -1 is returned and errno is set appropriately.
  *
  */
-int fwp_send(fwp_endpoint_d_t epointd,const void *msg, const size_t size, 
-               int flags)
+int fwp_send(fwp_endpoint_d_t epointd,const void *msg, const size_t size)
 {
        fwp_endpoint_t *fwp_epoint = epointd;
        struct fwp_msgb *msgb;
index 811e1f9ffa0db18c002374cf70cb550342178278..c5a61c69cc14198c1b79ef2c0b52bd289d5b06ab 100644 (file)
@@ -89,8 +89,7 @@ int fwp_send_endpoint_unbind(fwp_endpoint_d_t epointd);
 ssize_t fwp_recv(fwp_endpoint_d_t epointd,
                        void *buffer, const size_t buffer_size,
                        unsigned int *from, int flags);
-int fwp_send(fwp_endpoint_d_t epointd, const void *msg, const size_t size, 
-               int flags);
+int fwp_send(fwp_endpoint_d_t epointd, const void *msg, const size_t size);
 int fwp_endpoint_attr_init(fwp_endpoint_attr_t *attr);
 
 static inline int fwp_endpoint_attr_setreliability(fwp_endpoint_attr_t *attr, 
index d0294ce0e65cd32a262dfa08bf341f28d0730c8b..e09209438fc4cf5f7c3fce95eee57c5042824a68 100644 (file)
@@ -85,8 +85,8 @@ int main()
        printf("Send endpoint 2 created\n");
        fwp_send_endpoint_bind(sepoint_d2, vres_d2);
        
-       fwp_send(sepoint_d1, msg1, sizeof(msg1), 0);
-       fwp_send(sepoint_d1, msg2, sizeof(msg2), 0);
+       fwp_send(sepoint_d1, msg1, sizeof(msg1));
+       fwp_send(sepoint_d1, msg2, sizeof(msg2));
 
        for (i = 0; i < 2; i++) {
                if ((len = fwp_recv(repoint_d1, buffer, sizeof(buffer), &from, 
index 6af7623720c2a63009d8d98fb52158cf9e5caba1..afbc54771f06eaf2eff4898e83273a39849299f7 100644 (file)
@@ -97,9 +97,9 @@ int main()
        printf("Send endpoint 1 created\n");
        fwp_send_endpoint_bind(sepoint_d1, vres_d1);
        
-       fwp_send(sepoint_d1, msg1, sizeof(msg1), 0);
+       fwp_send(sepoint_d1, msg1, sizeof(msg1));
        printf("Sent msg1\n");
-       fwp_send(sepoint_d1, msg2, sizeof(msg2), 0);
+       fwp_send(sepoint_d1, msg2, sizeof(msg2));
        printf("Sent msg2\n");
        
        pthread_join(thread, (void**) NULL);    
index fee130f3ed38829a9a0765fb4a4e9ee1301e6d0b..b013d9590aa0e75d50b4b2d984bfcb91109e91f5 100644 (file)
@@ -76,7 +76,7 @@ int main()
        
        for (count = 0; count < NUM; count++) { 
                sprintf(msg1,"msg%d",count);
-               fwp_send(sepoint_d1, msg1, sizeof(msg1), 0);
+               fwp_send(sepoint_d1, msg1, sizeof(msg1));
                
                clock_gettime(CLOCK_MONOTONIC, &sendtime);
                printf("Sent: sec = %ld nsec = %ld \n", sendtime.tv_sec,
index fd7c190ff6ca9f98f9e4aea6a7be48648f7fa82e..c1c4d22c8c8c612415033c54307754bcda093d42 100644 (file)
@@ -65,7 +65,7 @@ void* sender()
        while (count < NUM){
                count++;
                sprintf(msg1,"msg%d sent\n",count);
-               fwp_send(sepoint_d1, msg1, sizeof(msg1), 0);
+               fwp_send(sepoint_d1, msg1, sizeof(msg1));
        
                printf(msg1);   
                /*clock_gettime(CLOCK_MONOTONIC, &sendtime);