diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2025-02-12 08:50:13 +0100 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2025-02-12 08:50:13 +0100 |
commit | 827b4060a8e35047c1adc9ca2ab3d8e7ad905df0 (patch) | |
tree | 1235f34ef0ea04f9ccb22dd8f9c648e0e9c3ed06 /src/backend/bootstrap | |
parent | 506183bce73a2b22308a54876f0a56a249bc26e9 (diff) | |
download | postgresql-827b4060a8e35047c1adc9ca2ab3d8e7ad905df0.tar.gz postgresql-827b4060a8e35047c1adc9ca2ab3d8e7ad905df0.zip |
Remove unnecessary (char *) casts [mem]
Remove (char *) casts around memory functions such as memcmp(),
memcpy(), or memset() where the cast is useless. Since these
functions don't take char * arguments anyway, these casts are at best
complicated casts to (void *), about which see commit 7f798aca1d5.
Reviewed-by: Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Discussion: https://www.postgresql.org/message-id/flat/fd1fcedb-3492-4fc8-9e3e-74b97f2db6c7%40eisentraut.org
Diffstat (limited to 'src/backend/bootstrap')
-rw-r--r-- | src/backend/bootstrap/bootstrap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/bootstrap/bootstrap.c b/src/backend/bootstrap/bootstrap.c index 359f58a8f95..6db864892d0 100644 --- a/src/backend/bootstrap/bootstrap.c +++ b/src/backend/bootstrap/bootstrap.c @@ -463,8 +463,8 @@ boot_openrel(char *relname) { if (attrtypes[i] == NULL) attrtypes[i] = AllocateAttribute(); - memmove((char *) attrtypes[i], - (char *) TupleDescAttr(boot_reldesc->rd_att, i), + memmove(attrtypes[i], + TupleDescAttr(boot_reldesc->rd_att, i), ATTRIBUTE_FIXED_PART_SIZE); { |