Skip to content

Commit 2dde01c

Browse files
committed
Use ssize_t where signed results can happen
Noted by Alexander Korotkov
1 parent 30a6f98 commit 2dde01c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/pg_basebackup/walmethods.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ tar_write_padding_data(TarMethodFile * f, size_t bytes)
432432
{
433433
size_t bytestowrite = bytesleft > XLOG_BLCKSZ ? XLOG_BLCKSZ : bytesleft;
434434

435-
size_t r = tar_write(f, zerobuf, bytestowrite);
435+
ssize_t r = tar_write(f, zerobuf, bytestowrite);
436436

437437
if (r < 0)
438438
return false;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy