From 94ec712cd2a035c037cc4932979e7232f6399b9d Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Tue, 5 Sep 2006 23:07:16 +0000 Subject: [PATCH] Silence compiler warning about signed vs unsigned chars. --- contrib/sslinfo/sslinfo.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/contrib/sslinfo/sslinfo.c b/contrib/sslinfo/sslinfo.c index 2f0569b3f9..b5e56603ac 100644 --- a/contrib/sslinfo/sslinfo.c +++ b/contrib/sslinfo/sslinfo.c @@ -122,7 +122,10 @@ Datum ASN1_STRING_to_text(ASN1_STRING *str) outlen = 0; BIO_write(membuf, &outlen, 1); size = BIO_get_mem_data(membuf, &sp); - dp = pg_do_encoding_conversion(sp, size-1, PG_UTF8, GetDatabaseEncoding()); + dp = (char *) pg_do_encoding_conversion((unsigned char *) sp, + size-1, + PG_UTF8, + GetDatabaseEncoding()); outlen = strlen(dp); result = palloc(VARHDRSZ + outlen); memcpy(VARDATA(result), dp, outlen); @@ -288,7 +291,10 @@ Datum X509_NAME_to_text(X509_NAME *name) BIO_write(membuf, &i, 1); size = BIO_get_mem_data(membuf, &sp); - dp = pg_do_encoding_conversion(sp, size-1, PG_UTF8, GetDatabaseEncoding()); + dp = (char *) pg_do_encoding_conversion((unsigned char *) sp, + size-1, + PG_UTF8, + GetDatabaseEncoding()); BIO_free(membuf); outlen = strlen(dp); result = palloc(VARHDRSZ + outlen); -- 2.40.0