mirror of
https://github.com/0intro/wmii
synced 2024-12-17 17:12:57 +03:00
renamed IXP_MAX_CONN into IXP_MAX_CACHE
This commit is contained in:
parent
39fc05f71c
commit
27c76e1d1f
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user