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)
Wed, Nov 6, 3:40 PM
Unknown Object (File)
Sep 27 2024, 1:05 PM
Unknown Object (File)
Sep 18 2024, 2:50 PM
Unknown Object (File)
Sep 18 2024, 12:18 AM
Unknown Object (File)
Sep 6 2024, 8:39 AM
Unknown Object (File)
Sep 6 2024, 3:19 AM
Unknown Object (File)
Sep 2 2024, 10:10 PM
Unknown Object (File)
Sep 2 2024, 10:10 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.