mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Remove useless casts
Some of these were uselessly casting away "const", some were just nearby, but they where all unnecessary anyway. Discussion: https://www.postgresql.org/message-id/flat/53a28052-f9f3-1808-fed9-460fd43035ab%402ndquadrant.com
This commit is contained in:
@ -777,7 +777,7 @@ AddNewAttributeTuples(Oid new_rel_oid,
|
||||
{
|
||||
FormData_pg_attribute attStruct;
|
||||
|
||||
memcpy(&attStruct, (char *) SysAtt[i], sizeof(FormData_pg_attribute));
|
||||
memcpy(&attStruct, SysAtt[i], sizeof(FormData_pg_attribute));
|
||||
|
||||
/* Fill in the correct relation OID in the copied tuple */
|
||||
attStruct.attrelid = new_rel_oid;
|
||||
|
@ -59,7 +59,7 @@ static pg_unicode_decomposition *
|
||||
get_code_entry(pg_wchar code)
|
||||
{
|
||||
return bsearch(&(code),
|
||||
(void *) UnicodeDecompMain,
|
||||
UnicodeDecompMain,
|
||||
lengthof(UnicodeDecompMain),
|
||||
sizeof(pg_unicode_decomposition),
|
||||
conv_compare);
|
||||
|
Reference in New Issue
Block a user