Author: eadler
Date: Fri Jan 26 04:40:41 2018
New Revision: 328430
URL: https://svnweb.freebsd.org/changeset/base/328430

Log:
  devd: minor nits
  
  - mark usage as noreturn
  - config does not need a virtual destructor

Modified:
  head/sbin/devd/devd.cc
  head/sbin/devd/devd.hh

Modified: head/sbin/devd/devd.cc
==============================================================================
--- head/sbin/devd/devd.cc      Fri Jan 26 04:32:31 2018        (r328429)
+++ head/sbin/devd/devd.cc      Fri Jan 26 04:40:41 2018        (r328430)
@@ -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 <class T> void
 delete_and_clear(vector<T *> &v)

Modified: head/sbin/devd/devd.hh
==============================================================================
--- head/sbin/devd/devd.hh      Fri Jan 26 04:32:31 2018        (r328429)
+++ head/sbin/devd/devd.hh      Fri Jan 26 04:40:41 2018        (r328430)
@@ -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 *);
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to