Skip to content
Snippets Groups Projects
Commit 59e30dda authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Fix *nix build

We removed the large-scope 'i', but didn't update the Unix-only blocks of code
(dealing with UNIX domain spy sockets).
parent 06f6b07d
No related branches found
No related tags found
1 merge request!455Update branch with changes from master
Pipeline #6496 passed
...@@ -5350,7 +5350,7 @@ NO_SSH: ...@@ -5350,7 +5350,7 @@ NO_SSH:
listInit(&current_connections, LINK_LIST_MUTEX); listInit(&current_connections, LINK_LIST_MUTEX);
#ifdef __unix__ // unix-domain spy sockets #ifdef __unix__ // unix-domain spy sockets
for(i=first_node;i<=last_node && !(startup->options&BBS_OPT_NO_SPY_SOCKETS);i++) { for(int i=first_node;i<=last_node && !(startup->options&BBS_OPT_NO_SPY_SOCKETS);i++) {
if((unsigned int)snprintf(str,sizeof(uspy_addr.un.sun_path), if((unsigned int)snprintf(str,sizeof(uspy_addr.un.sun_path),
"%slocalspy%d.sock", startup->temp_dir, i) "%slocalspy%d.sock", startup->temp_dir, i)
>=sizeof(uspy_addr.un.sun_path)) { >=sizeof(uspy_addr.un.sun_path)) {
...@@ -5447,7 +5447,7 @@ NO_SSH: ...@@ -5447,7 +5447,7 @@ NO_SSH:
#endif #endif
} else { } else {
#ifdef __unix__ #ifdef __unix__
for(i=first_node;i<=last_node;i++) { for(int i=first_node;i<=last_node;i++) {
if(&uspy_cb[i-1] == ts_cb) { if(&uspy_cb[i-1] == ts_cb) {
if(node_socket[i-1]==INVALID_SOCKET) if(node_socket[i-1]==INVALID_SOCKET)
if(read(uspy_socket[i-1],str,sizeof(str)) < 1) if(read(uspy_socket[i-1],str,sizeof(str)) < 1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment