diff --git a/libixp2/ixp.h b/libixp2/ixp.h index 0a534d63..66618316 100644 --- a/libixp2/ixp.h +++ b/libixp2/ixp.h @@ -12,7 +12,7 @@ #define IXP_VERSION "9P2000" #define IXP_MAX_VERSION 32 #define IXP_MAX_ERROR 128 -#define IXP_MAX_CONN 32 +#define IXP_MAX_CACHE 32 #define IXP_MAX_MSG 8192 #define IXP_MAX_FLEN 128 #define IXP_MAX_ULEN 32 diff --git a/libixp2/socket.c b/libixp2/socket.c index 28fb32d1..90018d76 100644 --- a/libixp2/socket.c +++ b/libixp2/socket.c @@ -132,7 +132,7 @@ create_inet_sock(char *host, char **errstr) return -1; } - if(listen(fd, IXP_MAX_CONN) < 0) { + if(listen(fd, IXP_MAX_CACHE) < 0) { *errstr = "cannot listen on socket"; close(fd); return -1; @@ -171,7 +171,7 @@ create_unix_sock(char *file, char **errstr) } chmod(file, S_IRWXU); - if(listen(fd, IXP_MAX_CONN) < 0) { + if(listen(fd, IXP_MAX_CACHE) < 0) { *errstr = "cannot listen on socket"; close(fd); return -1;