From 27c76e1d1fb427a8edf62b539a4cef91fba321e4 Mon Sep 17 00:00:00 2001 From: "Anselm R. Garbe" Date: Sun, 29 Jan 2006 14:43:11 +0200 Subject: [PATCH] renamed IXP_MAX_CONN into IXP_MAX_CACHE --- libixp2/ixp.h | 2 +- libixp2/socket.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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;