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:
Aaron Jones 2016-09-16 22:08:10 +00:00
parent 67d31a2755
commit dd59642de1
No known key found for this signature in database
GPG key ID: EC6F86EE9CD840B5

View file

@ -794,8 +794,8 @@ 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));
} }
const char * const char *