Return value of lseek() can be negative on failure.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 14 Jan 2013 22:42:37 +0000 (00:42 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 14 Jan 2013 22:42:37 +0000 (00:42 +0200)
commit3f4b1749a8168893558f70021be4f40c650bbada
tree67a0b01d652b39d64e358fb4c232debfb0ab24d7
parent325c54b69cbddc03445ca6c3198d2998c5d5818f
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