socklen_t isn't size_t

This commit is contained in:
Bill Nottingham 2005-03-16 22:57:41 +00:00
parent e9b83da27b
commit 9395d56ffd

View File

@ -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) {