Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clang-tidy fixes #478

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
clang-tidy: use C++ includes
Found with modernize-deprecated-headers

Signed-off-by: Rosen Penev <[email protected]>
  • Loading branch information
neheb committed May 28, 2022
commit 0408f2d5ebea54b700f34afb09f5c96a84666916
4 changes: 2 additions & 2 deletions src/offline_packet_filter.cpp
Original file line number Diff line number Diff line change
@@ -27,10 +27,10 @@
*
*/

#include <string.h>
#include <cstring>
#include <tins/exceptions.h>
#include <tins/offline_packet_filter.h>
#include <tins/pdu.h>
#include <tins/exceptions.h>

using std::string;

2 changes: 1 addition & 1 deletion src/packet_sender.cpp
Original file line number Diff line number Diff line change
@@ -45,9 +45,9 @@
#include <linux/if_ether.h>
#include <linux/if_packet.h>
#endif
#include <cerrno>
#include <netdb.h>
#include <netinet/in.h>
#include <errno.h>
#else
#include <winsock2.h>
#include <ws2tcpip.h>
6 changes: 3 additions & 3 deletions src/packet_writer.cpp
Original file line number Diff line number Diff line change
@@ -30,11 +30,11 @@
#ifndef _WIN32
#include <sys/time.h>
#endif
#include <string.h>
#include <tins/packet_writer.h>
#include <cstring>
#include <tins/exceptions.h>
#include <tins/packet.h>
#include <tins/packet_writer.h>
#include <tins/pdu.h>
#include <tins/exceptions.h>

using std::string;