Skip to content
Snippets Groups Projects
Commit 87cd901c authored by Tom Lane's avatar Tom Lane
Browse files

Suppress compiler warnings.

parent 8136041a
No related branches found
No related tags found
No related merge requests found
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
* *
* Written by Victor B. Wagner <vitus@cryptocom.ru>, Cryptocom LTD * Written by Victor B. Wagner <vitus@cryptocom.ru>, Cryptocom LTD
* This file is distributed under BSD-style license. * This file is distributed under BSD-style license.
*
* $PostgreSQL: pgsql/contrib/sslinfo/sslinfo.c,v 1.4 2006/09/30 18:44:37 tgl Exp $
*/ */
#include "postgres.h" #include "postgres.h"
...@@ -113,7 +115,7 @@ Datum ASN1_STRING_to_text(ASN1_STRING *str) ...@@ -113,7 +115,7 @@ Datum ASN1_STRING_to_text(ASN1_STRING *str)
text *result; text *result;
membuf = BIO_new(BIO_s_mem()); membuf = BIO_new(BIO_s_mem());
BIO_set_close(membuf, BIO_CLOSE); (void) BIO_set_close(membuf, BIO_CLOSE);
ASN1_STRING_print_ex(membuf,str, ASN1_STRING_print_ex(membuf,str,
((ASN1_STRFLGS_RFC2253 & ~ASN1_STRFLGS_ESC_MSB) ((ASN1_STRFLGS_RFC2253 & ~ASN1_STRFLGS_ESC_MSB)
| ASN1_STRFLGS_UTF8_CONVERT)); | ASN1_STRFLGS_UTF8_CONVERT));
...@@ -271,7 +273,7 @@ Datum X509_NAME_to_text(X509_NAME *name) ...@@ -271,7 +273,7 @@ Datum X509_NAME_to_text(X509_NAME *name)
char *dp; char *dp;
text *result; text *result;
BIO_set_close(membuf, BIO_CLOSE); (void) BIO_set_close(membuf, BIO_CLOSE);
for (i=0; i<count; i++) for (i=0; i<count; i++)
{ {
e = X509_NAME_get_entry(name, i); e = X509_NAME_get_entry(name, i);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment