You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
882 B

  1. From e0c76c5ccf049d22bc47d723567926346e4d3639 Mon Sep 17 00:00:00 2001
  2. From: Moritz Warning <moritzwarning@web.de>
  3. Date: Sat, 21 Nov 2020 18:19:21 +0100
  4. Subject: [PATCH 6/8] gcc10
  5. ---
  6. osdep/Binder.hpp | 6 +++---
  7. 1 file changed, 3 insertions(+), 3 deletions(-)
  8. --- a/osdep/Binder.hpp
  9. +++ b/osdep/Binder.hpp
  10. @@ -396,9 +396,9 @@ public:
  11. }
  12. #endif // __LINUX__
  13. if (_bindingCount < ZT_BINDER_MAX_BINDINGS) {
  14. - _bindings[_bindingCount].udpSock = udps;
  15. - _bindings[_bindingCount].tcpListenSock = tcps;
  16. - _bindings[_bindingCount].address = ii->first;
  17. + _bindings[(unsigned int)_bindingCount].udpSock = udps;
  18. + _bindings[(unsigned int)_bindingCount].tcpListenSock = tcps;
  19. + _bindings[(unsigned int)_bindingCount].address = ii->first;
  20. phy.setIfName(udps,(char*)ii->second.c_str(),(int)ii->second.length());
  21. ++_bindingCount;
  22. }