rename PROC_MAX to PREFORK_MAX

This commit is contained in:
Omar Polo 2023-06-06 08:34:31 +00:00
parent 4267093e37
commit 3a8c76eab2
4 changed files with 6 additions and 6 deletions

2
gmid.c
View File

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

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

View File

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

View File

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