mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
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
This commit is contained in:
@ -315,8 +315,8 @@ SendTimeLineHistory(TimeLineHistoryCmd *cmd)
|
|||||||
char histfname[MAXFNAMELEN];
|
char histfname[MAXFNAMELEN];
|
||||||
char path[MAXPGPATH];
|
char path[MAXPGPATH];
|
||||||
int fd;
|
int fd;
|
||||||
size_t histfilelen;
|
off_t histfilelen;
|
||||||
size_t bytesleft;
|
off_t bytesleft;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Reply with a result set with one row, and two columns. The first col
|
* Reply with a result set with one row, and two columns. The first col
|
||||||
|
Reference in New Issue
Block a user