Page MenuHomeFreeBSD

nfsstat: Complete libxo transition.
ClosedPublic

Authored by yanhaowang on Aug 11 2023, 1:45 PM.
Tags
None
Referenced Files
F139358907: D41428.id126225.diff
Thu, Dec 11, 5:05 AM
Unknown Object (File)
Fri, Nov 28, 2:13 PM
Unknown Object (File)
Fri, Nov 28, 2:08 PM
Unknown Object (File)
Wed, Nov 26, 1:45 PM
Unknown Object (File)
Thu, Nov 20, 7:30 AM
Unknown Object (File)
Nov 4 2025, 5:15 PM
Unknown Object (File)
Nov 4 2025, 5:15 PM
Unknown Object (File)
Nov 4 2025, 5:14 PM

Diff Detail

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

Event Timeline

usr.bin/nfsstat/nfsstat.c
101

Please avoid contiguous blank lines.

des requested changes to this revision.Aug 17 2023, 4:02 PM
des added inline comments.
usr.bin/nfsstat/nfsstat.c
517

This should be xo_error().

This revision now requires changes to proceed.Aug 17 2023, 4:02 PM
usr.bin/nfsstat/nfsstat.c
517

Maybe use xo_err(1, "usage: nfsstat [-cdemszW] [-w wait]\n"); to replace the fprintf and exit function?

This comment was removed by yanhaowang.
yanhaowang added inline comments.
usr.bin/nfsstat/nfsstat.c
517

Ignore this, xo_err can't replace fprintf.

  • Use xo_error instead of fprintf.
  • Decide using 1 and 0 instead of EXIT_FAILURE and EXIT_SUCESS.
This revision is now accepted and ready to land.Aug 19 2023, 1:34 PM
This revision was automatically updated to reflect the committed changes.