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
Unknown Object (File)
Thu, Dec 7, 7:00 PM
Unknown Object (File)
Mon, Nov 20, 10:17 PM
Unknown Object (File)
Nov 8 2023, 12:17 PM
Unknown Object (File)
Nov 4 2023, 4:19 PM
Unknown Object (File)
Nov 3 2023, 8:21 PM
Unknown Object (File)
Oct 12 2023, 6:23 AM
Unknown Object (File)
Aug 15 2023, 2:25 AM
Unknown Object (File)
Aug 15 2023, 12:48 AM
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.