diff options
author | eadler <eadler@FreeBSD.org> | 2013-05-02 17:02:50 +0000 |
---|---|---|
committer | eadler <eadler@FreeBSD.org> | 2013-05-02 17:02:50 +0000 |
commit | ce753441d59d3ea068e08e808214672f9e9ebb75 (patch) | |
tree | fb3d489e08aea054592630f1cbbdfae62c3cdf97 | |
parent | 8183b49f3e67ed990814d7acf31f4c4228c7e077 (diff) | |
download | FreeBSD-src-ce753441d59d3ea068e08e808214672f9e9ebb75.zip FreeBSD-src-ce753441d59d3ea068e08e808214672f9e9ebb75.tar.gz |
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.
-rw-r--r-- | sbin/devd/devd.cc | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/sbin/devd/devd.cc b/sbin/devd/devd.cc index 9448775..b227589 100644 --- a/sbin/devd/devd.cc +++ b/sbin/devd/devd.cc @@ -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> |