projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
30a6f98
)
Use ssize_t where signed results can happen
author
Magnus Hagander
<
[email protected]
>
Mon, 24 Oct 2016 18:10:18 +0000
(20:10 +0200)
committer
Magnus Hagander
<
[email protected]
>
Mon, 24 Oct 2016 18:10:18 +0000
(20:10 +0200)
Noted by Alexander Korotkov
src/bin/pg_basebackup/walmethods.c
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/pg_basebackup/walmethods.c
b/src/bin/pg_basebackup/walmethods.c
index d1dc046c97ce75cd30bd5c200f352a3396bc321b..b0b3d435c36d3191ba1c711176a5a15a8ddba752 100644
(file)
--- a/
src/bin/pg_basebackup/walmethods.c
+++ b/
src/bin/pg_basebackup/walmethods.c
@@
-432,7
+432,7
@@
tar_write_padding_data(TarMethodFile * f, size_t bytes)
{
size_t bytestowrite = bytesleft > XLOG_BLCKSZ ? XLOG_BLCKSZ : bytesleft;
- s
ize_t
r = tar_write(f, zerobuf, bytestowrite);
+ s
size_t
r = tar_write(f, zerobuf, bytestowrite);
if (r < 0)
return false;