socklen_t isn't size_t
This commit is contained in:
parent
e9b83da27b
commit
9395d56ffd
@ -5,7 +5,7 @@
|
|||||||
int newsock = 0;
|
int newsock = 0;
|
||||||
struct sockaddr_un cliaddr;
|
struct sockaddr_un cliaddr;
|
||||||
- int len = sizeof(struct sockaddr_un);
|
- int len = sizeof(struct sockaddr_un);
|
||||||
+ size_t len = sizeof(struct sockaddr_un);
|
+ socklen_t len = sizeof(struct sockaddr_un);
|
||||||
|
|
||||||
newsock = accept(listenfd, (struct sockaddr *)&cliaddr, &len);
|
newsock = accept(listenfd, (struct sockaddr *)&cliaddr, &len);
|
||||||
if (newsock < 0) {
|
if (newsock < 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user