1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-28 04:34:27 +01:00

Remove inclusion of algorithm almost everywhere

This commit is contained in:
Matias Fontanini
2017-04-30 18:51:55 -07:00
parent 82e97addb1
commit 60b5f3e6e4
19 changed files with 87 additions and 110 deletions

View File

@@ -54,7 +54,6 @@
#endif
#include <cstring>
#include <ctime>
#include <algorithm>
#include "pdu.h"
#include "macros.h"
// PDUs required by PacketSender::send(PDU&, NetworkInterface)
@@ -71,7 +70,6 @@
using std::string;
using std::ostringstream;
using std::max;
using std::make_pair;
using std::vector;
using std::runtime_error;
@@ -457,7 +455,7 @@ PDU* PacketSender::recv_match_loop(const vector<int>& sockets,
int max_fd = 0;
for (vector<int>::const_iterator it = sockets.begin(); it != sockets.end(); ++it) {
FD_SET(*it, &readfds);
max_fd = max(max_fd, *it);
max_fd = (max_fd > *it) ? max_fd : *it;
}
if ((read = select(max_fd + 1, &readfds, 0, 0, &timeout)) == -1) {
return 0;