summaryrefslogtreecommitdiff
path: root/usr.sbin/relayctl
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2016-09-03 14:44:22 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2016-09-03 14:44:22 +0000
commitc63de89e7c6ac7a08c2ebe7e2f396f4910a5fb64 (patch)
tree14dfac66ef7bd987c5974574ada381fb0e892aba /usr.sbin/relayctl
parent7cdb329d2f6f82cf64b278403a5b86aef2d5d992 (diff)
Replace [RELAY|SERVER]_MAXPROC with the new PROC_MAX_INSTANCES
variable and limit it from 128 to 32 instances (the old value). While here, move a few PROC_ defines around. OK rzalamena@
Diffstat (limited to 'usr.sbin/relayctl')
-rw-r--r--usr.sbin/relayctl/relayctl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/relayctl/relayctl.c b/usr.sbin/relayctl/relayctl.c
index 6545548ddf2..7b52c21e61e 100644
--- a/usr.sbin/relayctl/relayctl.c
+++ b/usr.sbin/relayctl/relayctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: relayctl.c,v 1.56 2015/12/05 13:13:11 claudio Exp $ */
+/* $OpenBSD: relayctl.c,v 1.57 2016/09/03 14:44:21 reyk Exp $ */
/*
* Copyright (c) 2007 - 2013 Reyk Floeter <reyk@openbsd.org>
@@ -49,7 +49,7 @@ char *print_rdr_status(int);
char *print_host_status(int, int);
char *print_table_status(int, int);
char *print_relay_status(int);
-void print_statistics(struct ctl_stats[RELAY_MAXPROC + 1]);
+void print_statistics(struct ctl_stats[PROC_MAX_INSTANCES + 1]);
struct imsgname {
int type;
@@ -330,7 +330,7 @@ show_summary_msg(struct imsg *imsg, int type)
struct relay *rlay;
struct router *rt;
struct netroute *nr;
- struct ctl_stats stats[RELAY_MAXPROC];
+ struct ctl_stats stats[PROC_MAX_INSTANCES];
char name[HOST_NAME_MAX+1];
switch (imsg->hdr.type) {
@@ -536,7 +536,7 @@ print_relay_status(int flags)
}
void
-print_statistics(struct ctl_stats stats[RELAY_MAXPROC + 1])
+print_statistics(struct ctl_stats stats[PROC_MAX_INSTANCES + 1])
{
struct ctl_stats crs;
int i;