From: florian Date: Wed, 11 Jul 2018 14:01:44 +0000 (+0000) Subject: no longer needed X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=d8c41d5e7e9ecbcebc0dd77981cde1de72a37b31;p=openbsd no longer needed --- diff --git a/usr.sbin/rad/rad.c b/usr.sbin/rad/rad.c index 944938480e6..2339050b71c 100644 --- a/usr.sbin/rad/rad.c +++ b/usr.sbin/rad/rad.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rad.c,v 1.2 2018/07/10 22:14:19 florian Exp $ */ +/* $OpenBSD: rad.c,v 1.3 2018/07/11 14:01:44 florian Exp $ */ /* * Copyright (c) 2018 Florian Obser @@ -50,20 +50,6 @@ #include "engine.h" #include "control.h" -const char* imsg_type_name[] = { - "IMSG_NONE", - "IMSG_CTL_LOG_VERBOSE", - "IMSG_RECONF_CONF", - "IMSG_RECONF_RA_IFACE", - "IMSG_RECONF_RA_AUTOPREFIX", - "IMSG_RECONF_RA_PREFIX", - "IMSG_RECONF_END", - "IMSG_ICMP6SOCK", - "IMSG_STARTUP", - "IMSG_STARTUP_DONE", - "IMSG_SOCKET_IPC", -}; - __dead void usage(void); __dead void main_shutdown(void); @@ -429,8 +415,8 @@ main_dispatch_frontend(int fd, short event, void *bula) log_setverbose(verbose); break; default: - log_debug("%s: error handling imsg %s", __func__, - imsg_type_name[imsg.hdr.type]); + log_debug("%s: error handling imsg %d", __func__, + imsg.hdr.type); break; } imsg_free(&imsg); diff --git a/usr.sbin/rad/rad.h b/usr.sbin/rad/rad.h index c86b9b22d75..c051a1e6e64 100644 --- a/usr.sbin/rad/rad.h +++ b/usr.sbin/rad/rad.h @@ -1,4 +1,4 @@ -/* $OpenBSD: rad.h,v 1.2 2018/07/10 22:14:19 florian Exp $ */ +/* $OpenBSD: rad.h,v 1.3 2018/07/11 14:01:44 florian Exp $ */ /* * Copyright (c) 2018 Florian Obser @@ -64,8 +64,6 @@ enum imsg_type { IMSG_SOCKET_IPC }; -extern const char* imsg_type_name[]; - /* RFC 4861 Section 4.2 */ struct ra_options_conf { int dfr; /* is default router? */