您的位置:首页 > Web前端

warning: pointer targets in passing argument 3 of ‘accept’ differ in signedness

2017-05-14 12:17 2526 查看
The first warning tells you you have the wrong type for parameter 3 of accept. It wants a 'socklen_t *', but you are giving it an 'int *'. Declare client_length to be the right type.

[cpp] view
plain copy

 print?

    socklen_t  len=sizeof(struct sockaddr);  

改为:  

    int  len=sizeof(struct sockaddr);
  
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐