Browse Source

Test

etomic
jl777 8 years ago
parent
commit
61d4f04155
  1. 4
      iguana/exchanges/LP_network.c

4
iguana/exchanges/LP_network.c

@ -39,7 +39,7 @@ int32_t LP_send(int32_t sock,void *msg,int32_t sendlen,int32_t freeflag)
int32_t sentbytes,i; struct nn_pollfd pfd;
if ( sock < 0 )
{
printf("LP_send.(%s) to illegal socket\n",msg);
printf("LP_send.(%s) to illegal socket\n",(char *)msg);
if ( freeflag != 0 )
free(msg);
return(-1);
@ -63,7 +63,7 @@ int32_t LP_send(int32_t sock,void *msg,int32_t sendlen,int32_t freeflag)
//portable_mutex_unlock(&LP_networkmutex);
usleep(1000);
}
printf("error LP_send sock.%d, i.%d timeout.(%s) %s\n",sock,i,msg,nn_strerror(nn_errno()));
printf("error LP_send sock.%d, i.%d timeout.(%s) %s\n",sock,i,(char *)msg,nn_strerror(nn_errno()));
if ( freeflag != 0 )
free(msg);
return(-1);

Loading…
Cancel
Save