Commit Diff


commit - 4267093e37fd7cded943399af8afe3ba825a1e68
commit + 3a8c76eab2203c2e19ac63a2e22cea79e250cbea
blob - 23471c34a2989c8a0eb6b88f0741f1e9f5dc0f5f
blob + bd679896f0642b2a8813bf025ec0e79593523567
--- gmid.c
+++ 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;
blob - 09a54fa223139a20cd39377c62e31aa870d50c6a
blob + b1bd3bbedd13d669f146ca1f8ac2b19d08ed1282
--- gmid.h
+++ 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);
 
blob - a7a17fc07f058fb415d8c078ab09a35159c11406
blob + 7c963f64adec35ea7d6e05643347e2c6583fc827
--- parse.y
+++ 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;
 }
blob - c6757e56846f016357f6585965c3e08415af4ef4
blob + 52b18c609ace28a269db5f7d5fdbb789fbdf94ee
--- regress/puny-test.c
+++ 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;