aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/dbcommands.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2015-03-08 13:58:28 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2015-03-08 13:58:28 -0400
commitef75508efc789c79c5a5d4acd7ad5da85f1e4f08 (patch)
tree6247507ddaef3ebac83e1f511a195730817c130a /src/backend/commands/dbcommands.c
parent01cca2c1b1a0d52c83f250c50942ee00e62637ca (diff)
downloadpostgresql-ef75508efc789c79c5a5d4acd7ad5da85f1e4f08.tar.gz
postgresql-ef75508efc789c79c5a5d4acd7ad5da85f1e4f08.zip
Cast to (void *) rather than (int *) when passing int64's to PQfn().
This is a possibly-vain effort to silence a Coverity warning about bogus endianness dependency. The code's fine, because it takes care of endianness issues for itself, but Coverity sees an int64 being passed to an int* argument and not unreasonably suspects something's wrong. I'm not sure if putting the void* cast in the way will shut it up; but it can't hurt and seems better from a documentation standpoint anyway, since the pointer is not used as an int* in this code path. Just for a bit of additional safety, verify that the result length is 8 bytes as expected. Back-patch to 9.3 where the code in question was added.
Diffstat (limited to 'src/backend/commands/dbcommands.c')
0 files changed, 0 insertions, 0 deletions