1
0
mirror of https://github.com/coturn/coturn.git synced 2025-11-01 15:31:00 +01:00

Fix 2 warnings in code (#1027)

- Unused argument
- Invalid format type when printf-ing size_t
This commit is contained in:
Pavel Punsky 2022-10-21 09:47:23 -07:00 committed by GitHub
parent af9bc12055
commit c14e3da35c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -63,7 +63,7 @@ int try_acme_redirect(char *req, size_t len, const char *url,
snprintf(http_response, sizeof(http_response) - 1,
"HTTP/1.1 301 Moved Permanently\r\n"
"Content-Type: text/html\r\n"
"Content-Length: %ld\r\n"
"Content-Length: %zu\r\n"
"Connection: close\r\n"
"Location: %s%s\r\n"
"\r\n%s", strlen(HTML), url, req + GET_ACME_PREFIX_LEN, HTML);

View File

@ -1033,6 +1033,7 @@ static int redis_list_realm_options(uint8_t *realm) {
}
static void redis_auth_ping(void * rch) {
UNUSED_ARG(rch);
redisContext *rc = get_redis_connection();
if(rc) {
turnFreeRedisReply(redisCommand(rc, "keys turn/origin/*"));