From 1373ba55c9b9c9a5e4705daa03643255b4de1519 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Fri, 22 Feb 2019 09:01:19 +0100 Subject: [PATCH] Add const qualifier New code introduced in 050710b36964dee7e1b2bf6b5ef00041fd5d2787. The lack of const is not currently a compiler warning, but it's nice to have for consistency with surrounding code. --- src/interfaces/ecpg/ecpglib/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interfaces/ecpg/ecpglib/misc.c b/src/interfaces/ecpg/ecpglib/misc.c index 02338a41ea..6039837d25 100644 --- a/src/interfaces/ecpg/ecpglib/misc.c +++ b/src/interfaces/ecpg/ecpglib/misc.c @@ -432,7 +432,7 @@ ECPGis_noind_null(enum ECPGttype type, const void *ptr) return true; break; case ECPGt_bytea: - if (((struct ECPGgeneric_bytea *) ptr)->len == 0) + if (((const struct ECPGgeneric_bytea *) ptr)->len == 0) return true; break; case ECPGt_decimal: -- 2.40.0