Switch to use const
This commit is contained in:
		@@ -29,10 +29,9 @@
 | 
			
		||||
 | 
			
		||||
dht::DhtRunner node;
 | 
			
		||||
 | 
			
		||||
void NeoComm_init(unsigned short port) {
 | 
			
		||||
	if(port == 0)
 | 
			
		||||
		port = DEFAULT_PORT;
 | 
			
		||||
	node.run(port, dht::crypto::generateIdentity(), true);
 | 
			
		||||
void NeoComm_init(const unsigned short port) {
 | 
			
		||||
	node.run((port == 0 ? DEFAULT_PORT : port),
 | 
			
		||||
			dht::crypto::generateIdentity(), true);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void NeoComm_deinit() {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user