diff options
author | rlt3 <leroy@bythehilt.com> | 2013-08-01 16:01:29 -0400 |
---|---|---|
committer | rlt3 <leroy@bythehilt.com> | 2013-08-01 16:01:29 -0400 |
commit | 36698f08249fd1530cd7fdb7109a23c8c277beb6 (patch) | |
tree | a5b290aebfb8ede9bcfc3aed6e73b198ee4e677d /testing/nTox_win32.c | |
parent | 307e4d2e3edba4c1c297199a9785efcf628d7ee9 (diff) | |
parent | ffd69a6525cc706fadbf5ad8d68400fc1d6fd5b4 (diff) |
Merge branch 'master' of https://github.com/rlt3/ProjectTox-Core
Diffstat (limited to 'testing/nTox_win32.c')
-rw-r--r-- | testing/nTox_win32.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testing/nTox_win32.c b/testing/nTox_win32.c index b9208d4f..2394877f 100644 --- a/testing/nTox_win32.c +++ b/testing/nTox_win32.c | |||
@@ -346,7 +346,7 @@ int main(int argc, char *argv[]) | |||
346 | IP_Port bootstrap_ip_port; | 346 | IP_Port bootstrap_ip_port; |
347 | bootstrap_ip_port.port = htons(atoi(argv[2])); | 347 | bootstrap_ip_port.port = htons(atoi(argv[2])); |
348 | int resolved_address = resolve_addr(argv[1]); | 348 | int resolved_address = resolve_addr(argv[1]); |
349 | if (resolved_address != -1) | 349 | if (resolved_address != 0) |
350 | bootstrap_ip_port.ip.i = resolved_address; | 350 | bootstrap_ip_port.ip.i = resolved_address; |
351 | else | 351 | else |
352 | exit(1); | 352 | exit(1); |
@@ -384,4 +384,4 @@ int main(int argc, char *argv[]) | |||
384 | Sleep(1); | 384 | Sleep(1); |
385 | } | 385 | } |
386 | return 0; | 386 | return 0; |
387 | } \ No newline at end of file | 387 | } |