diff options
Diffstat (limited to 'peer.cpp')
-rw-r--r-- | peer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -38,11 +38,11 @@ int peerTest(int argc, char** argv) { string arg = argv[i]; if (arg == "-l" && i + 1 < argc) - listenPort = atoi(argv[++i]); + listenPort = (short)atoi(argv[++i]); else if (arg == "-r" && i + 1 < argc) remoteHost = argv[++i]; else if (arg == "-p" && i + 1 < argc) - remotePort = atoi(argv[++i]); + remotePort = (short)atoi(argv[++i]); else remoteHost = argv[i]; } |