Page MenuHomeFreeBSD

Better error checking in code example.
ClosedPublic

Authored by pauamma_gundo.com on Feb 3 2023, 2:09 AM.
Tags
None
Referenced Files
F115038139: D38367.id116382.diff
Sat, Apr 19, 9:28 PM
F115035265: D38367.id125418.diff
Sat, Apr 19, 8:49 PM
F115033806: D38367.id116382.diff
Sat, Apr 19, 8:27 PM
F115030393: D38367.id125418.diff
Sat, Apr 19, 7:35 PM
Unknown Object (File)
Sun, Apr 13, 8:48 PM
Unknown Object (File)
Tue, Apr 8, 4:46 PM
Unknown Object (File)
Feb 25 2025, 2:50 PM
Unknown Object (File)
Feb 9 2025, 5:49 PM
Subscribers

Details

Summary

Discussed with dim

Test Plan

igor # no output
man
mandoc -T lint # only unrelated warnings
clang -Wall -c example-with-static-removed.c # no errors or warnings

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Seems ok to me otherwise.

share/man/man4/filemon.4
222

I don't think this cast is needed?

225

Same here. You can assume that comparing a pid_t to -1 will do the right thing.

This revision is now accepted and ready to land.Feb 3 2023, 2:36 PM
This revision now requires review to proceed.Feb 3 2023, 10:49 PM
This revision is now accepted and ready to land.Feb 4 2023, 6:27 PM
In D38367#878182, @pauamma wrote:
In D38367#872754, @pauamma wrote:

Over to mentors

ping @carlavilla @gjb

@carlavilla, @gjb, do I need to do anything to move this forward?

Can a committer take this? My commit access was revoked.