aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-04-19 02:17:05 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-04-19 02:17:05 +0300
commit9b5170a723c9c78103fbd66c5c3b2b32a9af6702 (patch)
tree06b5a3fe0b3d8f080ceeb58e2e45b656cf8511de
parent90e0797981cb9b0b670e48b57926278fb642b3ee (diff)
Fix clang compilation error
-rw-r--r--bbot/tftp.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/bbot/tftp.cxx b/bbot/tftp.cxx
index 7249214..a8bb11b 100644
--- a/bbot/tftp.cxx
+++ b/bbot/tftp.cxx
@@ -36,9 +36,11 @@ namespace bbot
addr.sin_addr.s_addr = htonl (INADDR_ANY);
addr.sin_port = htons (0);
- if (bind (fd,
- reinterpret_cast<sockaddr*> (&addr),
- sizeof (sockaddr_in)) == -1)
+ // Not to confuse with std::bind().
+ //
+ if (::bind (fd,
+ reinterpret_cast<sockaddr*> (&addr),
+ sizeof (sockaddr_in)) == -1)
throw_system_error (errno);
// Create the map file.