GNUTLS: Improve rb_get_ssl_info()
Explicitly ignore the snprintf return value and properly indent the following line. Also add a 'v' before the version strings so it reads as e.g.: library (v3.3.8), compiled (v3.3.8)
This commit is contained in:
parent
67d31a2755
commit
dd59642de1
1 changed files with 2 additions and 2 deletions
|
@ -794,7 +794,7 @@ rb_supports_ssl(void)
|
||||||
void
|
void
|
||||||
rb_get_ssl_info(char *buf, size_t len)
|
rb_get_ssl_info(char *buf, size_t len)
|
||||||
{
|
{
|
||||||
rb_snprintf(buf, len, "GNUTLS: compiled (%s), library (%s)",
|
(void) rb_snprintf(buf, len, "GNUTLS: compiled (v%s), library (v%s)",
|
||||||
LIBGNUTLS_VERSION, gnutls_check_version(NULL));
|
LIBGNUTLS_VERSION, gnutls_check_version(NULL));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue