Fix return type of vde_recv() as well.
In this case it is not really necessary as the conversion to int will already take care of ensuring the return value is treated as signed.
This commit is contained in:
		
							parent
							
								
									6225b1884a
								
							
						
					
					
						commit
						f71ce34180
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -99,7 +99,7 @@ static void close_device(void) { | |||
| } | ||||
| 
 | ||||
| static bool read_packet(vpn_packet_t *packet) { | ||||
| 	int lenin = plug.vde_recv(conn, packet->data, MTU, 0); | ||||
| 	int lenin = (ssize_t)plug.vde_recv(conn, packet->data, MTU, 0); | ||||
| 	if(lenin <= 0) { | ||||
| 		logger(LOG_ERR, "Error while reading from %s %s: %s", device_info, device, strerror(errno)); | ||||
| 		running = false; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue