Fix some issues in pg_rewind.

Fujii Masao <fujii@postgresql.org>

Commit: 966c37fdb5ed9b87f3e91eace4dbbed7909f6769
Author: Fujii Masao <fujii@postgresql.org>
Date: 2015-06-11T13:31:18Z
Releases: 9.5.0
Fix some issues in pg_rewind.

* Remove invalid option character "N" from the third argument (valid option
string) of getopt_long().

* Use pg_free() or pfree() to free the memory allocated by pg_malloc() or
palloc() instead of always using free().

* Assume problem is no disk space if write() fails but doesn't set errno.

* Fix several typos.

Patch by me. Review by Michael Paquier.

Files