-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove duplicate function declarations - v2 #11990
Remove duplicate function declarations - v2 #11990
Conversation
Ticket:7297
NOTE: This PR may contain new authors. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #11990 +/- ##
==========================================
+ Coverage 82.75% 83.08% +0.33%
==========================================
Files 910 910
Lines 249016 258182 +9166
==========================================
+ Hits 206069 214522 +8453
- Misses 42947 43660 +713
Flags with carried forward coverage won't be shown. Click here to find out more. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this work, a few comments:
- could you reword the commit message to follow our guidelines? Since you're working on assorted files, you can use a style like c9e4524b3c71d0177
- a more nit one, but it's also important to pay attention to details: can you add a whitespace in the commit body message? it's currently
Task:7297
- you could also add to the commit body the command that was used to find these, for completion ;)
More generic ones:
- please don't forget to add the ticket link to your PR, as it helps us in case we want to check the ticket
- the PR checks that read (if applicable), you can remove if none will be checked, for a cleaner PR description :)
void AlertQueueInit(DetectEngineThreadCtx *det_ctx); | ||
void AlertQueueFree(DetectEngineThreadCtx *det_ctx); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since these are defined in src/detect-engine-alert.c
, I think it's better to keep these declarations, remove the duplicate ones in the other file, and then add this hear as an include.
work continued on #11993 |
Ticket:7297
Make sure these boxes are checked accordingly before submitting your Pull Request -- thank you.
Contribution style:
https://docs.suricata.io/en/latest/devguide/contributing/contribution-process.html
Our Contribution agreements:
https://suricata.io/about/contribution-agreement/ (note: this is only required once)
Changes (if applicable):
(including schema descriptions)
https://redmine.openinfosecfoundation.org/projects/suricata/issues
Link to ticket: https://redmine.openinfosecfoundation.org/issues/
Describe changes:
-Remove duplicate function declarations in header files
-previous pr #11988
Provide values to any of the below to override the defaults.
link to the pull request in the respective
_BRANCH
variable.SV_REPO=
SV_BRANCH=
SU_REPO=
SU_BRANCH=
LIBHTP_REPO=
LIBHTP_BRANCH=