aboutsummaryrefslogtreecommitdiffstats
path: root/utils/rds-ctl/rds-ctl.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/rds-ctl/rds-ctl.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/rds-ctl/rds-ctl.cpp')
-rw-r--r--utils/rds-ctl/rds-ctl.cpp37
1 files changed, 14 insertions, 23 deletions
diff --git a/utils/rds-ctl/rds-ctl.cpp b/utils/rds-ctl/rds-ctl.cpp
index cabfa538..37ab7dad 100644
--- a/utils/rds-ctl/rds-ctl.cpp
+++ b/utils/rds-ctl/rds-ctl.cpp
@@ -7,34 +7,25 @@
* Author: Konke Radlow <koradlow@gmail.com>
*/
-#include <unistd.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
-#include <wchar.h>
-#include <locale.h>
-#include <inttypes.h>
-#include <getopt.h>
-#include <sys/types.h>
-#include <fcntl.h>
-#include <errno.h>
-#include <sys/ioctl.h>
-#include <sys/time.h>
-#include <dirent.h>
-#include <config.h>
-#include <signal.h>
-
-#include <linux/videodev2.h>
-#include <libv4l2rds.h>
-
#include <cctype>
+#include <cerrno>
+#include <clocale>
#include <cmath>
+#include <csignal>
+#include <cstring>
#include <ctime>
-#include <list>
-#include <vector>
#include <map>
#include <string>
-#include <algorithm>
+#include <vector>
+
+#include <dirent.h>
+#include <fcntl.h>
+#include <getopt.h>
+#include <sys/ioctl.h>
+#include <unistd.h>
+
+#include <linux/videodev2.h>
+#include <libv4l2rds.h>
#define ARRAY_SIZE(arr) ((int)(sizeof(arr) / sizeof((arr)[0])))

Privacy Policy