Return value of lseek() can be negative on failure.

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: 3f4b1749a8168893558f70021be4f40c650bbada
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2013-01-14T22:42:37Z
Releases: 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

Files

PathChange+/−
src/backend/replication/walsender.c modified +2 −2