renamed IXP_MAX_CONN into IXP_MAX_CACHE

This commit is contained in:
Anselm R. Garbe 2006-01-29 14:43:11 +02:00
parent 39fc05f71c
commit 27c76e1d1f
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -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;