svn commit: r250186 - head/sbin/devd

Eitan Adler eadler at FreeBSD.org
Thu May 2 17:02:52 UTC 2013


Author: eadler
Date: Thu May  2 17:02:50 2013
New Revision: 250186
URL: http://svnweb.freebsd.org/changeset/base/250186

Log:
  Prefer using the C++ version of the standard headers.  These place the
  names within the std namespace (and possibly within the global
  namespace).
  
  The main advantage is that the C++ versions can provide optimized
  versions or simplified interfaces.

Modified:
  head/sbin/devd/devd.cc

Modified: head/sbin/devd/devd.cc
==============================================================================
--- head/sbin/devd/devd.cc	Thu May  2 16:09:06 2013	(r250185)
+++ head/sbin/devd/devd.cc	Thu May  2 17:02:50 2013	(r250186)
@@ -73,19 +73,20 @@ __FBSDID("$FreeBSD$");
 #include <sys/wait.h>
 #include <sys/un.h>
 
-#include <ctype.h>
+#include <cctype>
+#include <cerrno>
+#include <cstdlib>
+#include <cstdio>
+#include <csignal>
+#include <cstring>
+
 #include <dirent.h>
-#include <errno.h>
 #include <err.h>
 #include <fcntl.h>
 #include <libutil.h>
 #include <paths.h>
 #include <poll.h>
 #include <regex.h>
-#include <signal.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
 #include <unistd.h>
 
 #include <algorithm>


More information about the svn-src-head mailing list