diff options
author | 2018-07-09 07:41:15 +0000 | |
---|---|---|
committer | 2018-07-09 07:41:15 +0000 | |
commit | cf1a82210da8b19e19d2d573103da844ef699fa6 (patch) | |
tree | 5fd748af6bf1b6ace1e3851338c00266b2615291 | |
parent | Add a test related to variable expansion that used to trigger the segfault seen (diff) | |
download | wireguard-openbsd-cf1a82210da8b19e19d2d573103da844ef699fa6.tar.xz wireguard-openbsd-cf1a82210da8b19e19d2d573103da844ef699fa6.zip |
Remove array of IMSG type names.
It was helpfull in the beginning to know which IMSG are flying around
but unusable (and unsused) since slaacd(8) is on the ramdisk.
-rw-r--r-- | sbin/slaacd/slaacd.c | 38 | ||||
-rw-r--r-- | sbin/slaacd/slaacd.h | 4 |
2 files changed, 2 insertions, 40 deletions
diff --git a/sbin/slaacd/slaacd.c b/sbin/slaacd/slaacd.c index fbf119cf464..6778659fa10 100644 --- a/sbin/slaacd/slaacd.c +++ b/sbin/slaacd/slaacd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: slaacd.c,v 1.24 2018/07/07 12:08:07 sthen Exp $ */ +/* $OpenBSD: slaacd.c,v 1.25 2018/07/09 07:41:15 florian Exp $ */ /* * Copyright (c) 2017 Florian Obser <florian@openbsd.org> @@ -53,42 +53,6 @@ #include "engine.h" #include "control.h" -#ifndef SMALL -const char* imsg_type_name[] = { - "IMSG_NONE", - "IMSG_CTL_LOG_VERBOSE", - "IMSG_CTL_SHOW_INTERFACE_INFO", - "IMSG_CTL_SHOW_INTERFACE_INFO_RA", - "IMSG_CTL_SHOW_INTERFACE_INFO_RA_PREFIX", - "IMSG_CTL_SHOW_INTERFACE_INFO_RA_RDNS", - "IMSG_CTL_SHOW_INTERFACE_INFO_RA_DNSSL", - "IMSG_CTL_SHOW_INTERFACE_INFO_ADDR_PROPOSALS", - "IMSG_CTL_SHOW_INTERFACE_INFO_ADDR_PROPOSAL", - "IMSG_CTL_SHOW_INTERFACE_INFO_DFR_PROPOSALS", - "IMSG_CTL_SHOW_INTERFACE_INFO_DFR_PROPOSAL", - "IMSG_CTL_END", - "IMSG_UPDATE_ADDRESS", - "IMSG_CTL_SEND_SOLICITATION", - "IMSG_SOCKET_IPC", - "IMSG_ICMP6SOCK", - "IMSG_ROUTESOCK", - "IMSG_CONTROLFD", - "IMSG_STARTUP", - "IMSG_STARTUP_DONE", - "IMSG_UPDATE_IF", - "IMSG_REMOVE_IF", - "IMSG_RA", - "IMSG_PROPOSAL", - "IMSG_PROPOSAL_ACK", - "IMSG_CONFIGURE_ADDRESS", - "IMSG_DEL_ADDRESS", - "IMSG_DEL_ROUTE", - "IMSG_FAKE_ACK", - "IMSG_CONFIGURE_DFR", - "IMSG_WITHDRAW_DFR", -}; -#endif /* SMALL */ - __dead void usage(void); __dead void main_shutdown(void); diff --git a/sbin/slaacd/slaacd.h b/sbin/slaacd/slaacd.h index 923b5ec9f40..910be91e687 100644 --- a/sbin/slaacd/slaacd.h +++ b/sbin/slaacd/slaacd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: slaacd.h,v 1.16 2018/05/17 13:39:00 florian Exp $ */ +/* $OpenBSD: slaacd.h,v 1.17 2018/07/09 07:41:15 florian Exp $ */ /* * Copyright (c) 2017 Florian Obser <florian@openbsd.org> @@ -76,8 +76,6 @@ enum imsg_type { IMSG_WITHDRAW_DFR, }; -extern const char* imsg_type_name[]; - enum { PROC_MAIN, PROC_ENGINE, |