mirror of
				https://github.com/Mbed-TLS/mbedtls.git
				synced 2025-11-03 20:33:16 +03:00 
			
		
		
		
	FIX: compiler warning with recvfrom on 64-bit
This commit is contained in:
		@@ -319,7 +319,7 @@ int mbedtls_net_accept( mbedtls_net_context *bind_ctx,
 | 
				
			|||||||
        /* UDP: wait for a message, but keep it in the queue */
 | 
					        /* UDP: wait for a message, but keep it in the queue */
 | 
				
			||||||
        char buf[1] = { 0 };
 | 
					        char buf[1] = { 0 };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        ret = recvfrom( bind_ctx->fd, buf, sizeof( buf ), MSG_PEEK,
 | 
					        ret = (int) recvfrom( bind_ctx->fd, buf, sizeof( buf ), MSG_PEEK,
 | 
				
			||||||
                        (struct sockaddr *) &client_addr, &n );
 | 
					                        (struct sockaddr *) &client_addr, &n );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if defined(_WIN32)
 | 
					#if defined(_WIN32)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user