Source-Changes-D archive

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

Re: CVS commit: src/usr.bin/stat



    Date:        Thu, 15 May 2025 19:11:44 +0000
    From:        "Nia Alarie" <nia%netbsd.org@localhost>
    Message-ID:  <20250515191144.954C6FBE3%cvs.NetBSD.org@localhost>

  | stat(1): Eliminate a compiler warning

What was the warning?

  | This code at the moment is a bit magical, as it uses pointer arithemtic
  | on a string and boolean type to return either "lstat" or "stat".

No it didn't, it used pointer arith on a string and an int, which is
perfectly well defined.  That the int was (effectively) true/false
(ie: 1 or 0) is irrelevant, it is still an int.

kre



Home | Main Index | Thread Index | Old Index