From: Alan T. DeKok Date: Thu, 1 Jun 2017 11:27:41 +0000 (-0400) Subject: use correct type. Closes #1998 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=22e136dfa4ab96ff86c35b1266f6ff44ec2b2b85;p=thirdparty%2Ffreeradius-server.git use correct type. Closes #1998 It's better to pass the right type to a function, and cast it on return. --- diff --git a/src/main/tls/cache.c b/src/main/tls/cache.c index 52f054948ab..8008a5b84bc 100644 --- a/src/main/tls/cache.c +++ b/src/main/tls/cache.c @@ -152,9 +152,9 @@ inline static ssize_t tls_cache_id(uint8_t const **out, SSL_SESSION *sess) *out = sess->session_id; return sess->session_id_length; #else - size_t len; + unsigned int len; - *out = SSL_SESSION_get_id(sess, (unsigned int *)&len); + *out = SSL_SESSION_get_id(sess, &len); return len; #endif }