mirror of
https://github.com/postgres/postgres.git
synced 2025-07-26 01:22:12 +03:00
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 7f798aca1d
.
Reviewed-by: Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Discussion: https://www.postgresql.org/message-id/flat/fd1fcedb-3492-4fc8-9e3e-74b97f2db6c7%40eisentraut.org
This commit is contained in:
@ -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);
|
||||
|
||||
{
|
||||
|
Reference in New Issue
Block a user