diff options
author | Coren[m] <Break@Ocean> | 2013-09-11 00:44:05 +0200 |
---|---|---|
committer | Coren[m] <Break@Ocean> | 2013-09-11 00:44:05 +0200 |
commit | 5869057aba3226bf6d1f996fbd3ba80c97ef359e (patch) | |
tree | 24c4bee4309d7d66aea6af1a6fcff1e2397304b4 /other/DHT_bootstrap.c | |
parent | 0139f2838f158fd485733275d721a080a29551ae (diff) |
network.c:
- reset errno from failed bind() calls if the last one succeeds
DHT_bootstrap.c:
- move the perror() output next to where it belongs to
Diffstat (limited to 'other/DHT_bootstrap.c')
-rw-r--r-- | other/DHT_bootstrap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/other/DHT_bootstrap.c b/other/DHT_bootstrap.c index 63cb1b75..f5fa9818 100644 --- a/other/DHT_bootstrap.c +++ b/other/DHT_bootstrap.c | |||
@@ -102,6 +102,8 @@ int main(int argc, char *argv[]) | |||
102 | ip_init(&ip, ipv6enabled); | 102 | ip_init(&ip, ipv6enabled); |
103 | 103 | ||
104 | DHT *dht = new_DHT(new_net_crypto(new_networking(ip, PORT))); | 104 | DHT *dht = new_DHT(new_net_crypto(new_networking(ip, PORT))); |
105 | perror("Initialization"); | ||
106 | |||
105 | manage_keys(dht); | 107 | manage_keys(dht); |
106 | printf("Public key: "); | 108 | printf("Public key: "); |
107 | uint32_t i; | 109 | uint32_t i; |
@@ -122,8 +124,6 @@ int main(int argc, char *argv[]) | |||
122 | printf("\n"); | 124 | printf("\n"); |
123 | printf("Port: %u\n", PORT); | 125 | printf("Port: %u\n", PORT); |
124 | 126 | ||
125 | perror("Initialization."); | ||
126 | |||
127 | if (argc > argvoffset + 3) { | 127 | if (argc > argvoffset + 3) { |
128 | printf("Trying to bootstrap into the network...\n"); | 128 | printf("Trying to bootstrap into the network...\n"); |
129 | uint16_t port = htons(atoi(argv[argvoffset + 2])); | 129 | uint16_t port = htons(atoi(argv[argvoffset + 2])); |