Commit 3f4b1749 authored by Heikki Linnakangas's avatar Heikki Linnakangas

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
parent 325c54b6
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment