projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove unused functions and variables.
[tinc]
/
src
/
tincctl.c
diff --git
a/src/tincctl.c
b/src/tincctl.c
index
93bb465
..
6d7f03b
100644
(file)
--- a/
src/tincctl.c
+++ b/
src/tincctl.c
@@
-38,12
+38,6
@@
static bool show_help = false;
/* If nonzero, print the version on standard output and exit. */
static bool show_version = false;
/* If nonzero, print the version on standard output and exit. */
static bool show_version = false;
-/* If nonzero, it will attempt to kill a running tincd and exit. */
-static int kill_tincd = 0;
-
-/* If nonzero, generate public/private keypair for this host/net. */
-static int generate_keys = 0;
-
static char *name = NULL;
static char *identname = NULL; /* program name for syslog */
static char *controlcookiename = NULL; /* cookie file location */
static char *name = NULL;
static char *identname = NULL; /* program name for syslog */
static char *controlcookiename = NULL; /* cookie file location */
@@
-535,8
+529,7
@@
int main(int argc, char *argv[], char *envp[]) {
#endif
if(connect(fd, res->ai_addr, res->ai_addrlen) < 0) {
#endif
if(connect(fd, res->ai_addr, res->ai_addrlen) < 0) {
-
- fprintf(stderr, "Cannot connect to %s: %s\n", controlcookiename, sockstrerror(sockerrno));
+ fprintf(stderr, "Cannot connect to %s port %s: %s\n", host ?: "localhost", port, sockstrerror(sockerrno));
return 1;
}
return 1;
}