Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: src/usr.bin/stat
Module Name: src
Committed By: nia
Date: Thu May 15 19:11:44 UTC 2025
Modified Files:
src/usr.bin/stat: stat.c
Log Message:
stat(1): Eliminate a compiler 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".
Use the ternary operator instead to make the code easier to read and make
Clang happier.
No functional change intended(tm).
To generate a diff of this commit:
cvs rdiff -u -r1.54 -r1.55 src/usr.bin/stat/stat.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index