Skip to content
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

Conversation

Nancyenos
Copy link

@Nancyenos Nancyenos commented Oct 18, 2024

Ticket:7297

Make sure these boxes are checked accordingly before submitting your Pull Request -- thank you.

Contribution style:

Our Contribution agreements:

Changes (if applicable):

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.

  • To use an LibHTP, Suricata-Verify or Suricata-Update pull request,
    link to the pull request in the respective _BRANCH variable.
  • Leave unused overrides blank or remove.

SV_REPO=
SV_BRANCH=
SU_REPO=
SU_BRANCH=
LIBHTP_REPO=
LIBHTP_BRANCH=

Copy link

NOTE: This PR may contain new authors.

Copy link

codecov bot commented Oct 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.08%. Comparing base (55b922c) to head (053c7fc).

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     
Flag Coverage Δ
fuzzcorpus 61.02% <ø> (+0.21%) ⬆️
livemode 19.39% <ø> (+0.68%) ⬆️
pcap 44.46% <ø> (+0.33%) ⬆️
suricata-verify 62.75% <ø> (+0.46%) ⬆️
unittests 59.28% <ø> (+0.27%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

@jufajardini jufajardini added the outreachy Contributions made by Outreachy applicants label Oct 19, 2024
@jufajardini jufajardini changed the title Remove duplicate function declarationsv2 Remove duplicate function declarations - v2 Oct 19, 2024
Copy link
Contributor

@jufajardini jufajardini left a 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 :)

Comment on lines -31 to -32
void AlertQueueInit(DetectEngineThreadCtx *det_ctx);
void AlertQueueFree(DetectEngineThreadCtx *det_ctx);
Copy link
Contributor

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.

@Nancyenos
Copy link
Author

work continued on #11993

@Nancyenos Nancyenos closed this Oct 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
outreachy Contributions made by Outreachy applicants
Development

Successfully merging this pull request may close these issues.

2 participants