aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gmid.c2
-rw-r--r--gmid.h6
-rw-r--r--parse.y2
-rw-r--r--regress/puny-test.c2
4 files changed, 6 insertions, 6 deletions
diff --git a/gmid.c b/gmid.c
index 23471c3..bd67989 100644
--- a/gmid.c
+++ b/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;
diff --git a/gmid.h b/gmid.h
index 09a54fa..b1bd3bb 100644
--- a/gmid.h
+++ b/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);
diff --git a/parse.y b/parse.y
index a7a17fc..7c963f6 100644
--- a/parse.y
+++ b/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;
}
diff --git a/regress/puny-test.c b/regress/puny-test.c
index c6757e5..52b18c6 100644
--- a/regress/puny-test.c
+++ b/regress/puny-test.c
@@ -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;