projects
/
users
/
c2main
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
554ca69
)
Add const qualifier
author
Peter Eisentraut
<
[email protected]
>
Fri, 22 Feb 2019 08:01:19 +0000
(09:01 +0100)
committer
Peter Eisentraut
<
[email protected]
>
Fri, 22 Feb 2019 08:01:19 +0000
(09:01 +0100)
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
patch
|
blob
|
blame
|
history
diff --git
a/src/interfaces/ecpg/ecpglib/misc.c
b/src/interfaces/ecpg/ecpglib/misc.c
index 02338a41eae972d7fb2294e3caf39ef5fb3651df..6039837d252ab9c9b02a8913e11302bac75eca67 100644
(file)
--- 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: