From: Omar Polo Subject: Re: diff: fread cannot return -1 To: Tom Jones Cc: gameoftrees@openbsd.org Date: Tue, 11 Oct 2022 11:04:25 +0200 On 2022/10/11 09:43:37 +0100, Tom Jones wrote: > fread returns a size_t and can never be -1. fread can signal parameter > errors on some platforms, but this isn't portable. Remove this check and > break out of the loop when fread returns 0. > > - Tom ok op@