aboutsummaryrefslogtreecommitdiffstats
path: root/utils/cec-compliance/cec-test-audio.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-compliance/cec-test-audio.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-compliance/cec-test-audio.cpp')
-rw-r--r--utils/cec-compliance/cec-test-audio.cpp17
1 files changed, 4 insertions, 13 deletions
diff --git a/utils/cec-compliance/cec-test-audio.cpp b/utils/cec-compliance/cec-test-audio.cpp
index 85b3777d..980a9640 100644
--- a/utils/cec-compliance/cec-test-audio.cpp
+++ b/utils/cec-compliance/cec-test-audio.cpp
@@ -3,23 +3,14 @@
* 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 <fcntl.h>
-#include <ctype.h>
-#include <errno.h>
+#include <ctime>
+#include <string>
+
#include <sys/ioctl.h>
-#include <config.h>
-#include <cstdlib>
+#include <unistd.h>
#include "cec-compliance.h"
-
/* Dynamic Auto Lipsync */
static int dal_request_current_latency(struct node *node, unsigned me, unsigned la, bool interactive)

Privacy Policy