]> rtime.felk.cvut.cz Git - frescor/fwp.git/blobdiff - fwp/tests/fwp_prototest/fwp_sendrecv_test2.c
Compilation fixes in tests
[frescor/fwp.git] / fwp / tests / fwp_prototest / fwp_sendrecv_test2.c
index 38777b2d10395494338a9476684faf735daecfa9..c95d3d0c8dd51c82bb298155a91d28bb76347cae 100644 (file)
@@ -4,15 +4,16 @@
 
 #include <errno.h>
 #include <stdio.h>
+#include <pthread.h>
 
 fwp_endpoint_attr_t  attr;
 
-void* receiver(void *arg)
+void* receiver(voidarg)
 {
        fwp_endpoint_d_t repoint_d1;
        int i,len;
        char buffer[30];
-
+       
        FWP_DEBUG("Creating receive endpoint\n");
        if (fwp_receive_endpoint_create(7777, &attr,&repoint_d1) < 0){
                perror("Error while creating receive endpoint\n");