commit 5140108ab3520b992c694749f80713d1396d21be
parent 22072f27c2fdcc6f6c0eec107e94a11e79fa908a
Author: Frederic Cambus <fred@statdns.com>
Date: Tue, 21 Jun 2022 16:23:38 +0200
Use C++ <cname> headers in a few more places.
Diffstat:
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/seccomp.hpp b/src/seccomp.hpp
@@ -4,7 +4,7 @@
* https://www.statdns.com
*
* Created: 2012-02-13
- * Last Updated: 2021-03-30
+ * Last Updated: 2022-06-21
*
* StatZone is released under the BSD 2-Clause license.
* See LICENSE file for details.
@@ -15,7 +15,7 @@
#ifndef SECCOMP_HPP
#define SECCOMP_HPP
-#include <stddef.h>
+#include <cstddef>
#include <sys/prctl.h>
#include <sys/socket.h>
#include <sys/syscall.h>
diff --git a/src/statzone.cpp b/src/statzone.cpp
@@ -4,7 +4,7 @@
* https://www.statdns.com
*
* Created: 2012-02-13
- * Last Updated: 2022-02-25
+ * Last Updated: 2022-06-21
*
* StatZone is released under the BSD 2-Clause license.
* See LICENSE file for details.
@@ -13,10 +13,10 @@
*/
#include <getopt.h>
-#include <string.h>
#include <chrono>
#include <csignal>
+#include <cstring>
#include <iostream>
#include <string>
#include <unordered_set>
diff --git a/src/strtolower.cpp b/src/strtolower.cpp
@@ -4,7 +4,7 @@
* https://www.statdns.com
*
* Created: 2012-02-13
- * Last Updated: 2019-01-03
+ * Last Updated: 2022-06-21
*
* StatZone is released under the BSD 2-Clause license.
* See LICENSE file for details.
@@ -12,7 +12,7 @@
* SPDX-License-Identifier: BSD-2-Clause
*/
-#include <ctype.h>
+#include <cctype>
#include "strtolower.hpp"
char *