While here, appease some of the suggestions by portclippy/portfmt.
Changes: https://www.kamailio.org/pub/kamailio/5.4.4/ChangeLog
Details
- Reviewers
tcberner fernape - Commits
- rP568045: net/kamailio: Update to 5.4.4
QA:
- portlint: OK (1 WARN).
- testport: OK (poudriere: 12.2-RELEASE-p4, amd64/i386).
PR: 254187
Submitted by: Dmitry Wagin <dmitry.wagin@ya.ru> (maintainer)
Diff Detail
- Repository
- rP FreeBSD ports repository
- Lint
No Lint Coverage - Unit
No Test Coverage - Build Status
Buildable 37733 Build 34622: arc lint + arc unit
Event Timeline
This port would benefit from some cleanup. It would be better if variables were sorted, especially the option helpers.
When I find things like this, I usually report back to the submitter/maintainer in the PR or I fixed them myself.
Sometimes I sound like Marie Kondo, but... :-)
I thought about ordering the varying OPTIONS too, just didn't know at what point is considered "too much" even though we retain the right to make these changes as we see fit. Though you're right; best to embrace the tidy-up. I'll get to it ;)
Thanks!
I think it is wise to friendly advise the submitter/maintainer. Sometimes I do it before the commit and sometimes I ask them if they would do the changes themselves
Most people are really receptive to suggestions :-)
I'll attach this in the bug-report too, just to make sure they're happy with the changes.
Do we need a g_free_event as well? In your case in geom_disk you are going to consume it always, but my other case in g_vfs_done() is optional and I will need to be able to free it in g_vfs_close() when a g_vfs object is freed without having its underlying storage destroyed.
You could also perhaps forward declare 'struct g_event' in geom.h while leaving it opaque so that you could have static type-checking for the new functions (g_alloc_event, g_free_event, g_post_event_storage).