summaryrefslogtreecommitdiffstats
path: root/usr.sbin/relayctl
diff options
context:
space:
mode:
authorreyk <reyk@openbsd.org>2016-09-03 14:44:21 +0000
committerreyk <reyk@openbsd.org>2016-09-03 14:44:21 +0000
commit8e01c6e36df952f7c75233c8dd69e446af8f612b (patch)
tree4c9fa02e37ccbc92e497805c261a8ae5f2956fe9 /usr.sbin/relayctl
parentde-zaurus com.c (diff)
downloadwireguard-openbsd-8e01c6e36df952f7c75233c8dd69e446af8f612b.tar.xz
wireguard-openbsd-8e01c6e36df952f7c75233c8dd69e446af8f612b.zip
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;