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)
Mon, Oct 5, 9:23 PM
Unknown Object (File)
Sun, Oct 4, 10:11 AM
Unknown Object (File)
Sun, Oct 4, 1:07 AM
Unknown Object (File)
Thu, Oct 1, 7:44 PM
Unknown Object (File)
Thu, Oct 1, 7:23 AM
Unknown Object (File)
Tue, Sep 29, 3:29 AM
Unknown Object (File)
Thu, Sep 24, 9:25 AM
Unknown Object (File)
Wed, Sep 23, 8:45 AM
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