mirror of
				https://github.com/coturn/coturn.git
				synced 2025-11-04 00:41:02 +01:00 
			
		
		
		
	Fix 2 warnings in code (#1027)
- Unused argument - Invalid format type when printf-ing size_t
This commit is contained in:
		
							parent
							
								
									af9bc12055
								
							
						
					
					
						commit
						c14e3da35c
					
				@ -63,7 +63,7 @@ int try_acme_redirect(char *req, size_t len, const char *url,
 | 
				
			|||||||
	snprintf(http_response, sizeof(http_response) - 1,
 | 
						snprintf(http_response, sizeof(http_response) - 1,
 | 
				
			||||||
		"HTTP/1.1 301 Moved Permanently\r\n"
 | 
							"HTTP/1.1 301 Moved Permanently\r\n"
 | 
				
			||||||
		"Content-Type: text/html\r\n"
 | 
							"Content-Type: text/html\r\n"
 | 
				
			||||||
		"Content-Length: %ld\r\n"
 | 
							"Content-Length: %zu\r\n"
 | 
				
			||||||
		"Connection: close\r\n"
 | 
							"Connection: close\r\n"
 | 
				
			||||||
		"Location: %s%s\r\n"
 | 
							"Location: %s%s\r\n"
 | 
				
			||||||
		"\r\n%s", strlen(HTML), url, req + GET_ACME_PREFIX_LEN, HTML);
 | 
							"\r\n%s", strlen(HTML), url, req + GET_ACME_PREFIX_LEN, HTML);
 | 
				
			||||||
 | 
				
			|||||||
@ -1033,6 +1033,7 @@ static int redis_list_realm_options(uint8_t *realm) {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
  
 | 
					  
 | 
				
			||||||
static void redis_auth_ping(void * rch) {
 | 
					static void redis_auth_ping(void * rch) {
 | 
				
			||||||
 | 
						UNUSED_ARG(rch);
 | 
				
			||||||
	redisContext *rc = get_redis_connection();
 | 
						redisContext *rc = get_redis_connection();
 | 
				
			||||||
	if(rc) {
 | 
						if(rc) {
 | 
				
			||||||
		turnFreeRedisReply(redisCommand(rc, "keys turn/origin/*"));
 | 
							turnFreeRedisReply(redisCommand(rc, "keys turn/origin/*"));
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user