pgsql: Remove some unnecessary casts in format arguments

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Remove some unnecessary casts in format arguments
Date: 2021-08-08 20:08:35
Message-ID: E1mCp63-0006Oy-I9@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Remove some unnecessary casts in format arguments

We can use %zd or %zu directly, no need to cast to int. Conversely,
some code was casting away from int when it could be using %d
directly.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/ae03a7c7391dfc59f14226b7cfd8ef9f3390e56f

Modified Files
--------------
src/backend/access/spgist/spgutils.c | 8 ++++----
src/backend/access/transam/xlogutils.c | 4 ++--
src/backend/utils/adt/xml.c | 4 ++--
src/bin/pg_basebackup/receivelog.c | 6 +++---
src/bin/pg_waldump/pg_waldump.c | 8 ++++----
5 files changed, 15 insertions(+), 15 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian 2021-08-09 01:06:28 pgsql: doc: mention pg_upgrade extension script
Previous Message Tom Lane 2021-08-08 19:35:51 pgsql: Doc: remove bogus <indexterm> items.