C rewrite: C-ify includes (cstdio -> stdio.h)

This commit is contained in:
Théophile Bastian 2020-07-22 15:52:55 +02:00
parent 99f14b84c1
commit 8f5d3b9805
10 changed files with 12 additions and 14 deletions

View file

@ -5,8 +5,8 @@
#include <fcntl.h>
#include <unistd.h>
#include <errno.h>
#include <cstdlib>
#include <cstring>
#include <stdlib.h>
#include <string.h>
#include "TunDevice.hpp"

View file

@ -1,4 +1,4 @@
#include <cstring>
#include <string.h>
#include "UdpVpnClient.hpp"
#include "ip_header.hpp"

View file

@ -1,4 +1,4 @@
#include <cstring>
#include <string.h>
#include "UdpVpnServer.hpp"
#include "ip_header.hpp"

View file

@ -1,6 +1,5 @@
#pragma once
#include <unordered_map>
#include <memory>
#include "UdpVpn.hpp"

View file

@ -1,7 +1,7 @@
#include "VpnPacket.hpp"
#include "VpnPeer.hpp"
#include <cstring>
#include <string.h>
const size_t VpnPacket::VPN_HEADER_BYTES = 8;
const size_t VpnControlPacket::TLV_HEADER_BYTES = 3;

View file

@ -2,7 +2,7 @@
/** A packet to be transmitted or received over the VPN socket */
#include <cstdlib>
#include <stdlib.h>
#include <memory>
#include "ip_header.hpp"

View file

@ -1,9 +1,8 @@
#include "UdpVpn.hpp"
#include "congestion_control.hpp"
#include <cstdint>
#include <cstring>
#include <functional>
#include <stdint.h>
#include <string.h>
const double RTTLogger::EXP_AVG_FACTOR = 0.75;
const unsigned int RTTLogger::BASE_UPDATE_DELAY = 1000; // ms

View file

@ -1,4 +1,4 @@
#include <cstring>
#include <string.h>
#include "ip_header.hpp"
#include "util.hpp"

View file

@ -1,5 +1,5 @@
#include <cstdio>
#include <cstdlib>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <arpa/inet.h>
#include <signal.h>

View file

@ -1,4 +1,4 @@
#include <cstdio>
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
#include <arpa/inet.h>