ed(1): Simplify some checks.
authorpfg <pfg@FreeBSD.org>
Mon, 12 Dec 2016 20:25:59 +0000 (20:25 +0000)
committerpfg <pfg@FreeBSD.org>
Mon, 12 Dec 2016 20:25:59 +0000 (20:25 +0000)
commitb7278ffafcf14c03a8a765228b9e0d7a9e589120
tree5e410015a905d787a1b74ebe6d8ccfff7ce90d46
parent03c8e9397243628bba9f8fa35314728d3862ab62
ed(1): Simplify some checks.

The return type for both fread(3) and fwrite(3) cannot be negative, this
renders some checks invalid and variable 'ct' unnecessary.
Also bump 'len' to size_t to avoid signed/unsigned comparison warnings.
bin/ed/buf.c