Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 May 2013 17:02:50 +0000 (UTC)
From:      Eitan Adler <eadler@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r250186 - head/sbin/devd
Message-ID:  <201305021702.r42H2o5n036779@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201305021702.r42H2o5n036779>