Page MenuHomeFreeBSD

df: fix various compiler warnings and improve code quality
Needs ReviewPublic

Authored by aalx2176_gmail.com on Apr 27 2026, 6:27 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Jun 21, 12:55 PM
Unknown Object (File)
Thu, Jun 11, 2:03 PM
Unknown Object (File)
Sun, Jun 7, 12:56 PM
Unknown Object (File)
May 17 2026, 7:20 AM
Unknown Object (File)
May 17 2026, 5:13 AM
Unknown Object (File)
May 15 2026, 12:50 PM
Unknown Object (File)
May 15 2026, 11:23 AM
Unknown Object (File)
May 11 2026, 7:02 PM
Subscribers

Details

Reviewers
None
Group Reviewers
Contributor Reviews (src)
Src Committers
Summary
  • Add __dead2 attribute to usage()
  • Use correct types (ssize_t and size_t) for mount point counts and buffer lengths to avoid 64-to-32 truncation
  • Fix invalid escape sequence in xo_emit format string
  • Remove redundant sizeof(char) in malloc()
Test Plan

Compiled with -Weverything -Wno-unsafe-buffer-usage -Wno-sign-conversion and verified output manually

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 72580
Build 69463: arc lint + arc unit