Browse Source

[master] Add std:: to memcmp

Jelte Jansen 12 years ago
parent
commit
65eb1db454
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lib/dns/rdata/generic/detail/char_string.cc

+ 1 - 1
src/lib/dns/rdata/generic/detail/char_string.cc

@@ -130,7 +130,7 @@ int compareCharStrings(const detail::CharString& self,
     const size_t self_len = self[0];
     const size_t other_len = other[0];
     const size_t cmp_len = std::min(self_len, other_len);
-    const int cmp = memcmp(&self[1], &other[1], cmp_len);
+    const int cmp = std::memcmp(&self[1], &other[1], cmp_len);
     if (cmp < 0) {
         return (-1);
     } else if (cmp > 0) {