Replace use of deprecated C Standard library headers in C++ code.
Change-Id: I9fa6630c7e4bdb2897df34d417635d8c7d8253bc
Signed-off-by: Tyler Chatow <tchatow@gmail.com>
diff --git a/aos/network/sctp_client.cc b/aos/network/sctp_client.cc
index 7d86316..9e77a84 100644
--- a/aos/network/sctp_client.cc
+++ b/aos/network/sctp_client.cc
@@ -3,9 +3,10 @@
#include <arpa/inet.h>
#include <net/if.h>
#include <netinet/sctp.h>
-#include <stdlib.h>
-#include <string.h>
#include <sys/socket.h>
+
+#include <cstdlib>
+#include <cstring>
#include <string_view>
#include "aos/network/sctp_lib.h"
diff --git a/aos/network/sctp_client.h b/aos/network/sctp_client.h
index 6b84638..806026c 100644
--- a/aos/network/sctp_client.h
+++ b/aos/network/sctp_client.h
@@ -1,8 +1,8 @@
#ifndef AOS_NETWORK_SCTP_CLIENT_H_
#define AOS_NETWORK_SCTP_CLIENT_H_
-#include <stdio.h>
-#include <stdlib.h>
+#include <cstdio>
+#include <cstdlib>
#include <string_view>
#include "aos/network/sctp_lib.h"
diff --git a/aos/network/sctp_server.cc b/aos/network/sctp_server.cc
index 537f3ab..47a5719 100644
--- a/aos/network/sctp_server.cc
+++ b/aos/network/sctp_server.cc
@@ -5,10 +5,11 @@
#include <netdb.h>
#include <netinet/in.h>
#include <netinet/sctp.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
#include <sys/socket.h>
+
+#include <cstdio>
+#include <cstdlib>
+#include <cstring>
#include <memory>
#include <thread>
diff --git a/aos/network/sctp_server.h b/aos/network/sctp_server.h
index e18517a..d995c55 100644
--- a/aos/network/sctp_server.h
+++ b/aos/network/sctp_server.h
@@ -6,12 +6,13 @@
#include <netdb.h>
#include <netinet/in.h>
#include <netinet/sctp.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <memory>
#include <sys/socket.h>
+#include <cstdio>
+#include <cstdlib>
+#include <cstring>
+#include <memory>
+
#include "aos/network/sctp_lib.h"
#include "aos/unique_malloc_ptr.h"
#include "glog/logging.h"
@@ -73,7 +74,6 @@
int ppid_ = 1;
};
-
} // namespace message_bridge
} // namespace aos
diff --git a/aos/network/team_number.cc b/aos/network/team_number.cc
index 0bd0cf7..8885b52 100644
--- a/aos/network/team_number.cc
+++ b/aos/network/team_number.cc
@@ -1,10 +1,11 @@
#include "aos/network/team_number.h"
-#include <inttypes.h>
#include <netinet/in.h>
-#include <stdlib.h>
#include <unistd.h>
+#include <cinttypes>
+#include <cstdlib>
+
#include "absl/strings/numbers.h"
DEFINE_string(
diff --git a/aos/network/team_number.h b/aos/network/team_number.h
index 8effc27..b794309 100644
--- a/aos/network/team_number.h
+++ b/aos/network/team_number.h
@@ -1,8 +1,7 @@
#ifndef AOS_NETWORK_TEAM_NUMBER_H_
#define AOS_NETWORK_TEAM_NUMBER_H_
-#include <stdint.h>
-
+#include <cstdint>
#include <optional>
#include <string_view>
diff --git a/aos/network/timestamp_filter.h b/aos/network/timestamp_filter.h
index 73c9006..7ef32f4 100644
--- a/aos/network/timestamp_filter.h
+++ b/aos/network/timestamp_filter.h
@@ -1,10 +1,10 @@
#ifndef AOS_EVENTS_LOGGING_TIMESTAMP_FILTER_H_
#define AOS_EVENTS_LOGGING_TIMESTAMP_FILTER_H_
-#include <stdio.h>
#include <algorithm>
#include <chrono>
#include <cmath>
+#include <cstdio>
#include <deque>
#include "aos/configuration.h"