Re: svn commit: r306622 - head/usr.bin/mkimg

2016-10-03 Thread Marcel Moolenaar
On October 2, 2016 at 11:52:33 PM, Warner Losh (i...@bsdimp.com) wrote: Wouldn't it be better to say at the top  #ifndef OFF_MAX  #define OFF_MAX INT64_MAX  #endif  Not sure. The max is just for input checking. We do not even try to deal with an lseek(2) implementation that doesn’t take a

Re: svn commit: r306622 - head/usr.bin/mkimg

2016-10-03 Thread Adrian Chadd
suggest it for the next C standard? :) -a On 2 October 2016 at 23:43, Ed Schouten wrote: > 2016-10-03 6:00 GMT+02:00 Marcel Moolenaar : >> Log: >> Replace OFF_MAX with INT64_MAX. The former is defined on Linux. > > Blargh. If only C had

Re: svn commit: r306622 - head/usr.bin/mkimg

2016-10-03 Thread Warner Losh
Wouldn't it be better to say at the top #ifndef OFF_MAX #define OFF_MAX INT64_MAX #endif On Mon, Oct 3, 2016 at 12:43 AM, Ed Schouten wrote: > 2016-10-03 6:00 GMT+02:00 Marcel Moolenaar : >> Log: >> Replace OFF_MAX with INT64_MAX. The former is defined on

Re: svn commit: r306622 - head/usr.bin/mkimg

2016-10-03 Thread Ed Schouten
2016-10-03 6:00 GMT+02:00 Marcel Moolenaar : > Log: > Replace OFF_MAX with INT64_MAX. The former is defined on Linux. Blargh. If only C had std::numeric_limits::{min,max}. :-( -- Ed Schouten Nuxi, 's-Hertogenbosch, the Netherlands KvK-nr.: 62051717

svn commit: r306622 - head/usr.bin/mkimg

2016-10-02 Thread Marcel Moolenaar
Author: marcel Date: Mon Oct 3 04:00:30 2016 New Revision: 306622 URL: https://svnweb.freebsd.org/changeset/base/306622 Log: Replace OFF_MAX with INT64_MAX. The former is defined on Linux. Modified: head/usr.bin/mkimg/mkimg.c Modified: head/usr.bin/mkimg/mkimg.c