diff options
| author | Magnus Hagander | 2013-01-17 15:10:16 +0000 |
|---|---|---|
| committer | Magnus Hagander | 2013-01-17 15:10:33 +0000 |
| commit | 8ef6961685b380b493a6e4b4e2e833de239c120e (patch) | |
| tree | 19f878f55e9781f2de7910da27a7d46ef79745e1 /src/bin/pg_basebackup/pg_basebackup.c | |
| parent | 9ee4d06f3fdde37b063b8a0f0fa0a2113ac12303 (diff) | |
Silence compiler warnings
Diffstat (limited to 'src/bin/pg_basebackup/pg_basebackup.c')
| -rw-r--r-- | src/bin/pg_basebackup/pg_basebackup.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/pg_basebackup/pg_basebackup.c b/src/bin/pg_basebackup/pg_basebackup.c index f77b9f68e29..a684c0c6fcf 100644 --- a/src/bin/pg_basebackup/pg_basebackup.c +++ b/src/bin/pg_basebackup/pg_basebackup.c @@ -435,7 +435,7 @@ progress_report(int tablespacenum, const char *filename) ngettext("%*s/%s kB (100%%), %d/%d tablespace %*s", "%*s/%s kB (100%%), %d/%d tablespaces %*s", tablespacecount), - strlen(totalsize_str), + (int) strlen(totalsize_str), totaldone_str, totalsize_str, tablespacenum, tablespacecount, VERBOSE_FILENAME_LENGTH + 5, ""); @@ -447,7 +447,7 @@ progress_report(int tablespacenum, const char *filename) ngettext("%*s/%s kB (%d%%), %d/%d tablespace (%s%-*.*s)", "%*s/%s kB (%d%%), %d/%d tablespaces (%s%-*.*s)", tablespacecount), - strlen(totalsize_str), + (int) strlen(totalsize_str), totaldone_str, totalsize_str, percent, tablespacenum, tablespacecount, /* Prefix with "..." if we do leading truncation */ @@ -463,7 +463,7 @@ progress_report(int tablespacenum, const char *filename) ngettext("%*s/%s kB (%d%%), %d/%d tablespace", "%*s/%s kB (%d%%), %d/%d tablespaces", tablespacecount), - strlen(totalsize_str), + (int) strlen(totalsize_str), totaldone_str, totalsize_str, percent, tablespacenum, tablespacecount); |
