send.c: use c99 scope
recv.c: free memory and use c99 scope