aboutsummaryrefslogtreecommitdiffstats
path: root/utils/cec-follower/cec-processing.cpp
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2020-08-20 16:06:47 -0700
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2020-09-09 15:56:23 +0200
commitc034e1a19e400fbd70af6ba915f5ed352b2481da (patch)
tree2cb72c5c26cac8b5014c804f96ab8138c881fc1f /utils/cec-follower/cec-processing.cpp
parentd2f76464d9cf3036aa67ca89420e8753210a4def (diff)
clean up includes and convert C includes to C++
Several C includes ending in .h are deprecated in C++. Tested with several combinations of uClibc-ng, musl, glibc, libstdcpp, libcxx, and uClibc++. Signed-off-by: Rosen Penev <rosenp@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'utils/cec-follower/cec-processing.cpp')
-rw-r--r--utils/cec-follower/cec-processing.cpp17
1 files changed, 5 insertions, 12 deletions
diff --git a/utils/cec-follower/cec-processing.cpp b/utils/cec-follower/cec-processing.cpp
index e5021aa3..fdc62c8b 100644
--- a/utils/cec-follower/cec-processing.cpp
+++ b/utils/cec-follower/cec-processing.cpp
@@ -3,19 +3,12 @@
* Copyright 2016 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
*/
-#include <unistd.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
-#include <inttypes.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <sys/time.h>
-#include <fcntl.h>
-#include <ctype.h>
-#include <errno.h>
+#include <cerrno>
+#include <ctime>
+#include <string>
+
#include <sys/ioctl.h>
-#include <config.h>
+#include <sys/time.h>
#include "cec-follower.h"
#include "compiler.h"

Privacy Policy