| Server IP : 82.208.35.60 / Your IP : 216.73.216.168 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/ports/sysutils/aimage/files/ |
Upload File : |
imager.cpp:857:8: error: value of type '__bind<int &, sockaddr *, unsigned long>' is not contextually convertible to 'bool'
if(bind(sock,(sockaddr *)&local,sizeof(local))) err(1,"bind");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--- src/imager.cpp.orig 2018-06-05 06:55:20 UTC
+++ src/imager.cpp
@@ -854,7 +854,7 @@ int imager::socket_listen(int port)
#endif
local.sin_family = AF_INET;
local.sin_port = htons(port); // listen on requested port.
- if(bind(sock,(sockaddr *)&local,sizeof(local))) err(1,"bind");
+ if(::bind(sock,(sockaddr *)&local,sizeof(local))) err(1,"bind");
if(listen(sock,0)) err(1,"listen"); // listen, and only accept one
printf("Listening for connection on port %d...\n",port);
in = accept(sock,(sockaddr *)&remote,&rsize);