"GOT", but the "O" is a cute, smiling sun Index | Thread

From:
Omar Polo <op@omarpolo.com>
Subject:
Re: diff: fread cannot return -1
To:
Tom Jones <thj@freebsd.org>
Cc:
gameoftrees@openbsd.org
Date:
Tue, 11 Oct 2022 11:04:25 +0200

Download raw body.

On 2022/10/11 09:43:37 +0100, Tom Jones <thj@freebsd.org> 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@