From 510a8c88f0a0cdd96e55f959990ea8cfc7d2bc36 Mon Sep 17 00:00:00 2001 From: Eitan Adler Date: Fri, 26 Jan 2018 04:40:41 +0000 Subject: [PATCH] devd: minor nits - mark usage as noreturn - config does not need a virtual destructor --- sbin/devd/devd.cc | 2 +- sbin/devd/devd.hh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sbin/devd/devd.cc b/sbin/devd/devd.cc index 1d80564c94c2..f3111412fd17 100644 --- a/sbin/devd/devd.cc +++ b/sbin/devd/devd.cc @@ -161,7 +161,7 @@ static const char *configfile = CF; static void devdlog(int priority, const char* message, ...) __printflike(2, 3); static void event_loop(void); -static void usage(void); +static void usage(void) __dead2; template void delete_and_clear(vector &v) diff --git a/sbin/devd/devd.hh b/sbin/devd/devd.hh index af4ce192dec0..c797b6acd76c 100644 --- a/sbin/devd/devd.hh +++ b/sbin/devd/devd.hh @@ -147,7 +147,7 @@ class config { public: config() { push_var_table(); } - virtual ~config() { reset(); } + ~config() { reset(); } void add_attach(int, event_proc *); void add_detach(int, event_proc *); void add_directory(const char *);