Most of the developers used the (resp == NULL) style in their code. New developers will try to follow the ng_sample and may use the (!resp) style which is not consistent with other netgraph modules, also not recommended by MISRA-C.
Details
Details
- Reviewers
ivy kp des - Group Reviewers
network - Commits
- rG9f290050a6cd: ng_sample: fix style nits
rG49d9f344f67e: ng_sample: fix style nits
rG95c414dd27c2: ng_sample: fix style nits
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
sys/netgraph/ng_sample.c | ||
---|---|---|
323 | while you're here, i believe this extra space is a typo that could be removed. |
Comment Actions
We don't follow MISRA-C, but style(9) does also require this, so the change should be made anyway.