@@ -4,17 +4,17 @@
*/
#include <unistd.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
+#include <cstdlib>
+#include <cstdio>
+#include <cstring>
#include <inttypes.h>
#include <getopt.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <fcntl.h>
-#include <ctype.h>
-#include <errno.h>
+#include <cctype>
+#include <cerrno>
#include <sys/ioctl.h>
#include <sys/wait.h>
#include <sstream>
@@ -4,16 +4,16 @@
*/
#include <unistd.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
+#include <cstdlib>
+#include <cstdio>
+#include <cstring>
#include <inttypes.h>
#include <getopt.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
-#include <ctype.h>
-#include <errno.h>
+#include <cctype>
+#include <cerrno>
#include <sys/ioctl.h>
#include <sys/wait.h>
#include <sstream>
@@ -4,15 +4,15 @@
*/
#include <unistd.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
+#include <cstdlib>
+#include <cstdio>
+#include <cstring>
#include <inttypes.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
-#include <ctype.h>
-#include <errno.h>
+#include <cctype>
+#include <cerrno>
#include <sys/ioctl.h>
#include <config.h>
@@ -4,15 +4,15 @@
*/
#include <unistd.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
+#include <cstdlib>
+#include <cstdio>
+#include <cstring>
#include <inttypes.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
-#include <ctype.h>
-#include <errno.h>
+#include <cctype>
+#include <cerrno>
#include <sys/ioctl.h>
#include <config.h>
#include <sstream>
@@ -4,15 +4,15 @@
*/
#include <unistd.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
+#include <cstdlib>
+#include <cstdio>
+#include <cstring>
#include <inttypes.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
-#include <ctype.h>
-#include <errno.h>
+#include <cctype>
+#include <cerrno>
#include <sys/ioctl.h>
#include <config.h>
@@ -6,14 +6,14 @@
#include <cstring>
#include <unistd.h>
-#include <stdlib.h>
-#include <stdio.h>
+#include <cstdlib>
+#include <cstdio>
#include <inttypes.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
-#include <ctype.h>
-#include <errno.h>
+#include <cctype>
+#include <cerrno>
#include <sys/ioctl.h>
#include <config.h>
#include <sstream>
@@ -6,8 +6,8 @@
#include <cstring>
#include <unistd.h>
-#include <stdlib.h>
-#include <stdio.h>
+#include <cstdlib>
+#include <cstdio>
#include <inttypes.h>
#include <getopt.h>
#include <sys/types.h>
@@ -15,10 +15,10 @@
#include <sys/time.h>
#include <dirent.h>
#include <fcntl.h>
-#include <ctype.h>
-#include <errno.h>
+#include <cctype>
+#include <cerrno>
#include <sys/ioctl.h>
-#include <stdarg.h>
+#include <cstdarg>
#include <ctime>
#include <cerrno>
#include <string>
@@ -4,19 +4,19 @@
*/
#include <unistd.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
+#include <cstdlib>
+#include <cstdio>
+#include <cstring>
#include <inttypes.h>
#include <getopt.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <fcntl.h>
-#include <ctype.h>
-#include <errno.h>
+#include <cctype>
+#include <cerrno>
#include <sys/ioctl.h>
-#include <stdarg.h>
+#include <cstdarg>
#include <cerrno>
#include <string>
#include <vector>
@@ -6,15 +6,15 @@
#include <cstring>
#include <unistd.h>
-#include <stdlib.h>
-#include <stdio.h>
+#include <cstdlib>
+#include <cstdio>
#include <inttypes.h>
#include <getopt.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
-#include <ctype.h>
-#include <errno.h>
+#include <cctype>
+#include <cerrno>
#include <sys/ioctl.h>
#include <sys/wait.h>
#include <sstream>
@@ -4,16 +4,16 @@
*/
#include <unistd.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
+#include <cstdlib>
+#include <cstdio>
+#include <cstring>
#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 <cctype>
+#include <cerrno>
#include <sys/ioctl.h>
#include <config.h>
@@ -4,7 +4,7 @@
*/
#include <sys/ioctl.h>
-#include <stdlib.h>
+#include <cstdlib>
#include "cec-follower.h"
#include "compiler.h"
@@ -4,15 +4,15 @@
*/
#include <unistd.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
+#include <cstdlib>
+#include <cstdio>
+#include <cstring>
#include <inttypes.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
-#include <ctype.h>
-#include <errno.h>
+#include <cctype>
+#include <cerrno>
#include <sys/ioctl.h>
#include <sys/time.h>
#include <sys/sysmacros.h>
@@ -4,15 +4,15 @@
*/
#include <unistd.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
+#include <cstdlib>
+#include <cstdio>
+#include <cstring>
#include <inttypes.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
-#include <ctype.h>
-#include <errno.h>
+#include <cctype>
+#include <cerrno>
#include <sys/ioctl.h>
#include <sys/time.h>
#include <sys/sysmacros.h>
@@ -5,7 +5,7 @@
* Copyright 2017 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
*/
-#include <stdio.h>
+#include <cstdio>
#include <string>
#include <unistd.h>
#include <fcntl.h>
@@ -4,11 +4,11 @@
*/
#include <unistd.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
+#include <cstdlib>
+#include <cstdio>
+#include <cstring>
#include <inttypes.h>
-#include <stdarg.h>
+#include <cstdarg>
#include <string>
#include <linux/cec-funcs.h>
#include "cec-htng-funcs.h"
@@ -4,8 +4,8 @@
*/
#include <unistd.h>
-#include <stdlib.h>
-#include <stdio.h>
+#include <cstdlib>
+#include <cstdio>
#include <inttypes.h>
#include <getopt.h>
#include <sys/types.h>
@@ -13,10 +13,10 @@
#include <sys/time.h>
#include <dirent.h>
#include <fcntl.h>
-#include <ctype.h>
-#include <errno.h>
+#include <cctype>
+#include <cerrno>
#include <sys/ioctl.h>
-#include <stdarg.h>
+#include <cstdarg>
#include <cstring>
#include <ctime>
#include <cerrno>
@@ -8,21 +8,21 @@
*/
#include <unistd.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
-#include <wchar.h>
-#include <locale.h>
+#include <cstdlib>
+#include <cstdio>
+#include <cstring>
+#include <cwchar>
+#include <clocale>
#include <inttypes.h>
#include <getopt.h>
#include <sys/types.h>
#include <fcntl.h>
-#include <errno.h>
+#include <cerrno>
#include <sys/ioctl.h>
#include <sys/time.h>
#include <dirent.h>
#include <config.h>
-#include <signal.h>
+#include <csignal>
#include <linux/videodev2.h>
#include <libv4l2rds.h>
@@ -21,22 +21,22 @@
#include <cstring>
#include <unistd.h>
-#include <stdlib.h>
-#include <stdio.h>
+#include <cstdlib>
+#include <cstdio>
#include <inttypes.h>
#include <getopt.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
-#include <ctype.h>
-#include <errno.h>
+#include <cctype>
+#include <cerrno>
#include <sys/ioctl.h>
#include <sys/time.h>
#include <sys/sysmacros.h>
#include <dirent.h>
-#include <math.h>
+#include <cmath>
#include <sys/utsname.h>
-#include <signal.h>
+#include <csignal>
#include <vector>
#include "v4l2-compliance.h"
@@ -19,9 +19,9 @@
*/
#include <unistd.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
+#include <cstdlib>
+#include <cstdio>
+#include <cstring>
#include <inttypes.h>
#include <sys/types.h>
#include <sys/stat.h>
@@ -29,8 +29,8 @@
#include <sys/wait.h>
#include <sys/epoll.h>
#include <fcntl.h>
-#include <ctype.h>
-#include <errno.h>
+#include <cctype>
+#include <cerrno>
#include <poll.h>
#include <sys/ioctl.h>
#include <netinet/in.h>
@@ -19,17 +19,17 @@
*/
#include <unistd.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
+#include <cstdlib>
+#include <cstdio>
+#include <cstring>
#include <inttypes.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
-#include <ctype.h>
-#include <errno.h>
+#include <cctype>
+#include <cerrno>
#include <sys/ioctl.h>
-#include <assert.h>
+#include <cassert>
#include "v4l2-compliance.h"
int testEncoder(struct node *node)
@@ -15,19 +15,19 @@
*/
#include <unistd.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
+#include <cstdlib>
+#include <cstdio>
+#include <cstring>
#include <inttypes.h>
#include <getopt.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
-#include <ctype.h>
-#include <errno.h>
+#include <cctype>
+#include <cerrno>
#include <sys/ioctl.h>
#include <sys/time.h>
-#include <math.h>
+#include <cmath>
#include "compiler.h"
#include "v4l2-compliance.h"
@@ -19,15 +19,15 @@
*/
#include <unistd.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
+#include <cstdlib>
+#include <cstdio>
+#include <cstring>
#include <inttypes.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
-#include <ctype.h>
-#include <errno.h>
+#include <cctype>
+#include <cerrno>
#include <sys/ioctl.h>
#include <vector>
@@ -19,19 +19,19 @@
*/
#include <unistd.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
+#include <cstdlib>
+#include <cstdio>
+#include <cstring>
#include <inttypes.h>
#include <getopt.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
-#include <ctype.h>
-#include <errno.h>
+#include <cctype>
+#include <cerrno>
#include <sys/ioctl.h>
#include <sys/time.h>
-#include <math.h>
+#include <cmath>
#include "v4l2-compliance.h"
int testRegister(struct node *node)
@@ -19,17 +19,17 @@
*/
#include <unistd.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
+#include <cstdlib>
+#include <cstdio>
+#include <cstring>
#include <inttypes.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
-#include <ctype.h>
-#include <errno.h>
+#include <cctype>
+#include <cerrno>
#include <sys/ioctl.h>
-#include <assert.h>
+#include <cassert>
#include "compiler.h"
#include "v4l2-compliance.h"
@@ -19,15 +19,15 @@
*/
#include <unistd.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
+#include <cstdlib>
+#include <cstdio>
+#include <cstring>
#include <inttypes.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
-#include <ctype.h>
-#include <errno.h>
+#include <cctype>
+#include <cerrno>
#include <sys/ioctl.h>
#include "v4l2-compliance.h"
@@ -19,15 +19,15 @@
*/
#include <unistd.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
+#include <cstdlib>
+#include <cstdio>
+#include <cstring>
#include <inttypes.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
-#include <ctype.h>
-#include <errno.h>
+#include <cctype>
+#include <cerrno>
#include <sys/ioctl.h>
#include "v4l2-compliance.h"
@@ -19,19 +19,19 @@
*/
#include <unistd.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
+#include <cstdlib>
+#include <cstdio>
+#include <cstring>
#include <inttypes.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/sysmacros.h>
#include <fcntl.h>
#include <dirent.h>
-#include <ctype.h>
-#include <errno.h>
+#include <cctype>
+#include <cerrno>
#include <sys/ioctl.h>
-#include <assert.h>
+#include <cassert>
#include <set>
#include <fstream>
@@ -19,17 +19,17 @@
*/
#include <unistd.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
+#include <cstdlib>
+#include <cstdio>
+#include <cstring>
#include <inttypes.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
-#include <ctype.h>
-#include <errno.h>
+#include <cctype>
+#include <cerrno>
#include <sys/ioctl.h>
-#include <assert.h>
+#include <cassert>
#include "v4l2-compliance.h"
@@ -1,18 +1,18 @@
#include <unistd.h>
-#include <stdlib.h>
-#include <stdio.h>
+#include <cstdlib>
+#include <cstdio>
#include <inttypes.h>
#include <getopt.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
-#include <ctype.h>
-#include <errno.h>
+#include <cctype>
+#include <cerrno>
#include <sys/ioctl.h>
#include <sys/sysmacros.h>
#include <sys/time.h>
#include <dirent.h>
-#include <math.h>
+#include <cmath>
#include <linux/media.h>
#include "v4l2-ctl.h"
@@ -1,12 +1,12 @@
#include <cstring>
#include <unistd.h>
-#include <stdlib.h>
-#include <stdio.h>
+#include <cstdlib>
+#include <cstdio>
#include <inttypes.h>
#include <fcntl.h>
-#include <ctype.h>
-#include <errno.h>
+#include <cctype>
+#include <cerrno>
#include <sys/ioctl.h>
#include "v4l2-ctl.h"
@@ -1,18 +1,18 @@
#include <unistd.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
+#include <cstdlib>
+#include <cstdio>
+#include <cstring>
#include <inttypes.h>
#include <getopt.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
-#include <ctype.h>
-#include <errno.h>
+#include <cctype>
+#include <cerrno>
#include <sys/ioctl.h>
#include <sys/time.h>
#include <dirent.h>
-#include <math.h>
+#include <cmath>
#include "v4l2-ctl.h"
@@ -1,18 +1,18 @@
#include <unistd.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
+#include <cstdlib>
+#include <cstdio>
+#include <cstring>
#include <inttypes.h>
#include <getopt.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
-#include <ctype.h>
-#include <errno.h>
+#include <cctype>
+#include <cerrno>
#include <sys/ioctl.h>
#include <sys/time.h>
#include <dirent.h>
-#include <math.h>
+#include <cmath>
#include "v4l2-ctl.h"
@@ -1,18 +1,18 @@
#include <unistd.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
+#include <cstdlib>
+#include <cstdio>
+#include <cstring>
#include <inttypes.h>
#include <getopt.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
-#include <ctype.h>
-#include <errno.h>
+#include <cctype>
+#include <cerrno>
#include <sys/ioctl.h>
#include <sys/time.h>
#include <dirent.h>
-#include <math.h>
+#include <cmath>
#include "v4l2-ctl.h"
@@ -6,8 +6,8 @@
* reserved.
*/
-#include <stdio.h>
-#include <stdbool.h>
+#include <cstdio>
+
#include "v4l2-ctl.h"
static bool valid_params(int width, int height, int refresh_rate)
@@ -1,18 +1,18 @@
#include <unistd.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
+#include <cstdlib>
+#include <cstdio>
+#include <cstring>
#include <inttypes.h>
#include <getopt.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
-#include <ctype.h>
-#include <errno.h>
+#include <cctype>
+#include <cerrno>
#include <sys/ioctl.h>
#include <sys/time.h>
#include <dirent.h>
-#include <math.h>
+#include <cmath>
#include <linux/fb.h>
#include <vector>
@@ -1,18 +1,18 @@
#include <unistd.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
+#include <cstdlib>
+#include <cstdio>
+#include <cstring>
#include <inttypes.h>
#include <getopt.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
-#include <ctype.h>
-#include <errno.h>
+#include <cctype>
+#include <cerrno>
#include <sys/ioctl.h>
#include <sys/time.h>
#include <dirent.h>
-#include <math.h>
+#include <cmath>
#include "v4l2-ctl.h"
@@ -1,18 +1,18 @@
#include <unistd.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
+#include <cstdlib>
+#include <cstdio>
+#include <cstring>
#include <inttypes.h>
#include <getopt.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
-#include <ctype.h>
-#include <errno.h>
+#include <cctype>
+#include <cerrno>
#include <sys/ioctl.h>
#include <sys/time.h>
#include <dirent.h>
-#include <math.h>
+#include <cmath>
#include "v4l2-ctl.h"
@@ -1,18 +1,18 @@
#include <unistd.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
+#include <cstdlib>
+#include <cstdio>
+#include <cstring>
#include <inttypes.h>
#include <getopt.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
-#include <ctype.h>
-#include <errno.h>
+#include <cctype>
+#include <cerrno>
#include <sys/ioctl.h>
#include <sys/time.h>
#include <dirent.h>
-#include <math.h>
+#include <cmath>
#include "v4l2-ctl.h"
@@ -1,8 +1,8 @@
#include <cstring>
#include <unistd.h>
-#include <stdlib.h>
-#include <stdio.h>
+#include <cstdlib>
+#include <cstdio>
#include <inttypes.h>
#include <getopt.h>
#include <sys/types.h>
@@ -11,13 +11,13 @@
#include <netinet/in.h>
#include <netdb.h>
#include <fcntl.h>
-#include <ctype.h>
-#include <errno.h>
+#include <cctype>
+#include <cerrno>
#include <sys/ioctl.h>
#include <sys/time.h>
#include <sys/mman.h>
#include <dirent.h>
-#include <math.h>
+#include <cmath>
#include <linux/media.h>
#include "compiler.h"
@@ -1,18 +1,18 @@
#include <unistd.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
+#include <cstdlib>
+#include <cstdio>
+#include <cstring>
#include <inttypes.h>
#include <getopt.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
-#include <ctype.h>
-#include <errno.h>
+#include <cctype>
+#include <cerrno>
#include <sys/ioctl.h>
#include <sys/time.h>
#include <dirent.h>
-#include <math.h>
+#include <cmath>
#include "v4l2-ctl.h"
@@ -1,14 +1,14 @@
#include <unistd.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
+#include <cstdlib>
+#include <cstdio>
+#include <cstring>
#include <inttypes.h>
#include <getopt.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
-#include <ctype.h>
-#include <errno.h>
+#include <cctype>
+#include <cerrno>
#include <sys/ioctl.h>
#include <sys/time.h>
#include <dirent.h>
@@ -1,19 +1,19 @@
#include <cstring>
#include <unistd.h>
-#include <stdlib.h>
-#include <stdio.h>
+#include <cstdlib>
+#include <cstdio>
#include <inttypes.h>
#include <getopt.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
-#include <ctype.h>
-#include <errno.h>
+#include <cctype>
+#include <cerrno>
#include <sys/ioctl.h>
#include <sys/time.h>
#include <dirent.h>
-#include <math.h>
+#include <cmath>
#include "compiler.h"
#include "v4l2-ctl.h"
@@ -1,18 +1,18 @@
#include <unistd.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
+#include <cstdlib>
+#include <cstdio>
+#include <cstring>
#include <inttypes.h>
#include <getopt.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
-#include <ctype.h>
-#include <errno.h>
+#include <cctype>
+#include <cerrno>
#include <sys/ioctl.h>
#include <sys/time.h>
#include <dirent.h>
-#include <math.h>
+#include <cmath>
#include "v4l2-ctl.h"
@@ -1,18 +1,18 @@
#include <unistd.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
+#include <cstdlib>
+#include <cstdio>
+#include <cstring>
#include <inttypes.h>
#include <getopt.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
-#include <ctype.h>
-#include <errno.h>
+#include <cctype>
+#include <cerrno>
#include <sys/ioctl.h>
#include <sys/time.h>
#include <dirent.h>
-#include <math.h>
+#include <cmath>
#include "v4l2-ctl.h"
@@ -21,22 +21,22 @@
*/
#include <unistd.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
+#include <cstdlib>
+#include <cstdio>
+#include <cstring>
#include <inttypes.h>
#include <getopt.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/epoll.h>
#include <fcntl.h>
-#include <ctype.h>
-#include <errno.h>
+#include <cctype>
+#include <cerrno>
#include <sys/ioctl.h>
#include <sys/time.h>
#include <sys/sysmacros.h>
#include <dirent.h>
-#include <math.h>
+#include <cmath>
#include <linux/media.h>
@@ -17,18 +17,18 @@
*/
#include <unistd.h>
-#include <stdlib.h>
-#include <stdio.h>
+#include <cstdlib>
+#include <cstdio>
#include <inttypes.h>
#include <getopt.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
-#include <ctype.h>
-#include <errno.h>
+#include <cctype>
+#include <cerrno>
#include <sys/ioctl.h>
#include <sys/time.h>
-#include <math.h>
+#include <cmath>
#ifdef ANDROID
#include <android-config.h>
Recently, I changed exit() to the std variant, which caused build failures on older platforms. Switch all headers to the C++ variants to avoid this. These C headers are deprecated by C++14. Signed-off-by: Rosen Penev <rosenp@gmail.com> --- utils/cec-compliance/cec-compliance.cpp | 10 +++++----- utils/cec-compliance/cec-test-adapter.cpp | 10 +++++----- utils/cec-compliance/cec-test-audio.cpp | 10 +++++----- utils/cec-compliance/cec-test-fuzzing.cpp | 10 +++++----- utils/cec-compliance/cec-test-power.cpp | 10 +++++----- utils/cec-compliance/cec-test.cpp | 8 ++++---- utils/cec-ctl/cec-ctl.cpp | 10 +++++----- utils/cec-ctl/cec-pin.cpp | 12 ++++++------ utils/cec-follower/cec-follower.cpp | 8 ++++---- utils/cec-follower/cec-processing.cpp | 10 +++++----- utils/cec-follower/cec-tuner.cpp | 2 +- utils/common/media-info.cpp | 10 +++++----- utils/common/v4l2-info.cpp | 10 +++++----- utils/libcecutil/cec-info.cpp | 2 +- utils/libcecutil/cec-log.cpp | 8 ++++---- utils/libcecutil/cec-parse.cpp | 10 +++++----- utils/rds-ctl/rds-ctl.cpp | 14 +++++++------- utils/v4l2-compliance/v4l2-compliance.cpp | 12 ++++++------ utils/v4l2-compliance/v4l2-test-buffers.cpp | 10 +++++----- utils/v4l2-compliance/v4l2-test-codecs.cpp | 12 ++++++------ utils/v4l2-compliance/v4l2-test-colors.cpp | 12 ++++++------ utils/v4l2-compliance/v4l2-test-controls.cpp | 10 +++++----- utils/v4l2-compliance/v4l2-test-debug.cpp | 12 ++++++------ utils/v4l2-compliance/v4l2-test-formats.cpp | 12 ++++++------ utils/v4l2-compliance/v4l2-test-input-output.cpp | 10 +++++----- utils/v4l2-compliance/v4l2-test-io-config.cpp | 10 +++++----- utils/v4l2-compliance/v4l2-test-media.cpp | 12 ++++++------ utils/v4l2-compliance/v4l2-test-subdevs.cpp | 12 ++++++------ utils/v4l2-ctl/v4l2-ctl-common.cpp | 10 +++++----- utils/v4l2-ctl/v4l2-ctl-edid.cpp | 8 ++++---- utils/v4l2-ctl/v4l2-ctl-io.cpp | 12 ++++++------ utils/v4l2-ctl/v4l2-ctl-meta.cpp | 12 ++++++------ utils/v4l2-ctl/v4l2-ctl-misc.cpp | 12 ++++++------ utils/v4l2-ctl/v4l2-ctl-modes.cpp | 4 ++-- utils/v4l2-ctl/v4l2-ctl-overlay.cpp | 12 ++++++------ utils/v4l2-ctl/v4l2-ctl-sdr.cpp | 12 ++++++------ utils/v4l2-ctl/v4l2-ctl-selection.cpp | 12 ++++++------ utils/v4l2-ctl/v4l2-ctl-stds.cpp | 12 ++++++------ utils/v4l2-ctl/v4l2-ctl-streaming.cpp | 10 +++++----- utils/v4l2-ctl/v4l2-ctl-subdev.cpp | 12 ++++++------ utils/v4l2-ctl/v4l2-ctl-tuner.cpp | 10 +++++----- utils/v4l2-ctl/v4l2-ctl-vbi.cpp | 10 +++++----- utils/v4l2-ctl/v4l2-ctl-vidcap.cpp | 12 ++++++------ utils/v4l2-ctl/v4l2-ctl-vidout.cpp | 12 ++++++------ utils/v4l2-ctl/v4l2-ctl.cpp | 12 ++++++------ utils/v4l2-dbg/v4l2-dbg.cpp | 10 +++++----- 46 files changed, 236 insertions(+), 236 deletions(-)