Re: [PATCH 04/10] compile-i386.c: don't mix calls to write(2) with stdio

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Sep 27, 2014 at 9:00 PM, Ramsay Jones
<ramsay@xxxxxxxxxxxxxxxxxxx> wrote:
>>> -       write(STDOUT_FILENO, s, strlen(s));
>>> +       printf("%s", s);
>>
>
> I was only really fixing the compiler warning (in an side-ways fashion).
> (although I think it is an improvement).

I would just check the return value and "die" if there is an error to silence
the error.

Chris
--
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux