In article <dbe1242c-f99e-4b75-b356-516245aca...@msys.ch>,
Marc Balmer  <m...@msys.ch> wrote:
>>      if (outfd == STDOUT_FILENO)
>>              return;
>> 
>> -    if (lseek(outfd, SEEK_SET, 0) < 0)
>> +    if (lseek(outfd, (off_t)0, SEEK_SET) == (off_t)-1)
>>              err(1, "could not seek to start of file for header rewrite");
>
>Fwiw, this never caused a problem since SEEK_SET is defined 0.  But why
>is an explicit typecast to off_t needed?  Aren't integer cast
>automatically?

It is belt-and-suspenders if the prototype is not in scope.

christos

Reply via email to