postgres.git / summary / log / commit / refs
commit 3f4b1749a8168893558f70021be4f40c650bbada
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: Mon Jan 14 22:42:37 2013 +0000
First released in: 9.3.0
Return value of lseek() can be negative on failure.
Because the return value of lseek() was assigned to an unsigned size_t
variable, we'd fail to notice an error return code -1. Compiler gave a
warning about this.
Andres Freund
src/backend/replication/walsender.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/backend/replication/walsender.c b/src/backend/replication/walsender.c
index 5408b142f8d..ad7d1c911b3 100644
--- a/src/backend/replication/walsender.c
+++ b/src/backend/replication/walsender.c
@@ -315,8 +315,8 @@ SendTimeLineHistory(TimeLineHistoryCmd *cmd)
char histfname[MAXFNAMELEN];
char path[MAXPGPATH];
int fd;
- size_t histfilelen;
- size_t bytesleft;
+ off_t histfilelen;
+ off_t bytesleft;
/*
* Reply with a result set with one row, and two columns. The first col
[parent: 325c54b69cbd]