mirror of https://github.com/omar-polo/gmid.git
rename PROC_MAX to PREFORK_MAX
This commit is contained in:
parent
4267093e37
commit
3a8c76eab2
2
gmid.c
2
gmid.c
|
@ -45,7 +45,7 @@ struct vhosthead hosts;
|
|||
|
||||
int sock4, sock6;
|
||||
|
||||
struct imsgbuf logibuf, servibuf[PROC_MAX];
|
||||
struct imsgbuf logibuf, servibuf[PREFORK_MAX];
|
||||
|
||||
const char *config_path = "/etc/gmid.conf";
|
||||
const char *pidfile;
|
||||
|
|
6
gmid.h
6
gmid.h
|
@ -81,7 +81,7 @@
|
|||
#define FCGI_VAL_MAX 511
|
||||
|
||||
#define FCGI_MAX 32
|
||||
#define PROC_MAX 16
|
||||
#define PREFORK_MAX 16
|
||||
|
||||
struct iri {
|
||||
char *schema;
|
||||
|
@ -210,9 +210,9 @@ struct conf {
|
|||
extern const char *config_path;
|
||||
extern struct conf conf;
|
||||
|
||||
extern struct imsgbuf logibuf, servibuf[PROC_MAX];
|
||||
extern struct imsgbuf logibuf, servibuf[PREFORK_MAX];
|
||||
|
||||
extern int servpipes[PROC_MAX];
|
||||
extern int servpipes[PREFORK_MAX];
|
||||
|
||||
typedef void (imsg_handlerfn)(struct imsgbuf*, struct imsg*, size_t);
|
||||
|
||||
|
|
2
parse.y
2
parse.y
|
@ -1126,7 +1126,7 @@ check_port_num(int n)
|
|||
int
|
||||
check_prefork_num(int n)
|
||||
{
|
||||
if (n <= 0 || n >= PROC_MAX)
|
||||
if (n <= 0 || n >= PREFORK_MAX)
|
||||
yyerror("invalid prefork number %d", n);
|
||||
return n;
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
/* to make the linker happy */
|
||||
struct conf conf;
|
||||
struct imsgbuf logibuf, servibuf[PROC_MAX];
|
||||
struct imsgbuf logibuf, servibuf[PREFORK_MAX];
|
||||
|
||||
const struct suite {
|
||||
const char *src;
|
||||
|
|
Loading…
Reference in New Issue