Switch to use const

This commit is contained in:
nortega committed 2017-09-23 11:29:48 +02:00
1 parent a789ff4e0c
commit d5a33ccd79
1 file changed
+3 -4
+3 -4
View File
@@ -29,10 +29,9 @@
dht::DhtRunner node; dht::DhtRunner node;
void NeoComm_init(unsigned short port) { void NeoComm_init(const unsigned short port) {
if(port == 0) node.run((port == 0 ? DEFAULT_PORT : port),
port = DEFAULT_PORT; dht::crypto::generateIdentity(), true);
node.run(port, dht::crypto::generateIdentity(), true);
} }
void NeoComm_deinit() { void NeoComm_deinit() {