Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for the problem introduced by https://github.com/PDP-10/supdup/commit/d3f5019648cd14d96820599a838e4860b40a27d1#commitcomment-128203854 #34

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions chaos.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/* Chaosnet specific code, pulled out from supdup.c. */

#if USE_CHAOS_STREAM_SOCKET

#include <stdio.h>
#include <netdb.h>
#include <unistd.h>
Expand Down Expand Up @@ -117,15 +115,3 @@ chaos_connect(const char *hostname, const char *contact)
}
return fd;
}

#else /* !USE_CHAOS_STREAM_SOCKET */

int
chaos_connect(const char *hostname, const char *contact)
{
(void)hostname;
(void)contact;
return -1;
}

#endif /* !USE_CHAOS_STREAM_SOCKET */
2 changes: 2 additions & 0 deletions supdup.c
Original file line number Diff line number Diff line change
Expand Up @@ -234,11 +234,13 @@ connection(const char *host, const char *port)
printf("Trying %s %s...", host, port != NULL ? port : "");
fflush(stdout);
hostname = host;
#if USE_CHAOS_STREAM_SOCKET
if (chaosp) {
fd = chaos_connect(host, port);
if (fd != -1)
return fd;
}
#endif
if (tcpp) {
fd = tcp_connect(host, port);
if (fd != -1)
Expand Down