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

MinGW: Fix error: cannot convert 'size_t*' to 'int*' #1825

Closed
wants to merge 3 commits into from

Conversation

yadij
Copy link
Contributor

@yadij yadij commented May 29, 2024

Removing another addrinfo as we do.

Removing another addrinfo as we do.
@yadij yadij changed the title MinGW: Fix error: cannot convert 'size_t*' to 'int* MinGW: Fix error: cannot convert 'size_t*' to 'int*' in TcpAcceptor May 29, 2024
@squid-anubis squid-anubis added the M-failed-description https://github.com/measurement-factory/anubis#pull-request-labels label May 29, 2024
@yadij yadij changed the title MinGW: Fix error: cannot convert 'size_t*' to 'int*' in TcpAcceptor MinGW: Fix error: cannot convert 'size_t*' to 'int*' May 29, 2024
@squid-anubis squid-anubis removed the M-failed-description https://github.com/measurement-factory/anubis#pull-request-labels label May 29, 2024
src/comm/TcpAcceptor.cc Outdated Show resolved Hide resolved
src/comm/TcpAcceptor.cc Outdated Show resolved Hide resolved
src/comm/TcpAcceptor.cc Show resolved Hide resolved
src/comm/TcpAcceptor.cc Outdated Show resolved Hide resolved
src/comm/TcpAcceptor.cc Outdated Show resolved Hide resolved
@rousskov rousskov added the S-waiting-for-author author action is expected (and usually required) label May 29, 2024
yadij and others added 2 commits May 30, 2024 20:53
Co-authored-by: Alex Rousskov <rousskov@measurement-factory.com>
@yadij yadij requested a review from rousskov May 30, 2024 10:25
@yadij yadij added S-waiting-for-reviewer ready for review: Set this when requesting a (re)review using GitHub PR Reviewers box and removed S-waiting-for-author author action is expected (and usually required) labels May 30, 2024
Copy link
Contributor

@rousskov rousskov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for this cleanup!

P.S. We should avoid (poor) code duplication that this PR and recent 1800e25 are creating, but I think we should continue to duplicate that code for a little bit longer before there are enough use cases to suggest a proper deduplication solution.

@rousskov rousskov added M-cleared-for-merge https://github.com/measurement-factory/anubis#pull-request-labels S-could-use-an-approval An approval may speed this PR merger (but is not required) and removed S-waiting-for-reviewer ready for review: Set this when requesting a (re)review using GitHub PR Reviewers box labels May 30, 2024
@kinkie kinkie removed the S-could-use-an-approval An approval may speed this PR merger (but is not required) label Jun 1, 2024
squid-anubis pushed a commit that referenced this pull request Jun 2, 2024
@squid-anubis squid-anubis added the M-waiting-staging-checks https://github.com/measurement-factory/anubis#pull-request-labels label Jun 2, 2024
@yadij
Copy link
Contributor Author

yadij commented Jun 2, 2024

Thanks a lot for this cleanup!

P.S. We should avoid (poor) code duplication that this PR and recent 1800e25 are creating, but I think we should continue to duplicate that code for a little bit longer before there are enough use cases to suggest a proper deduplication solution.

I assume you are referring to the pattern of 2 local variables with a reinterpret_cast (if not please correct me). FWIW, I hope long term that we only need to de-duplicate the set/get syscalls and the rest are uncommon enough to be okay without anything special.

@squid-anubis squid-anubis added M-merged https://github.com/measurement-factory/anubis#pull-request-labels and removed M-waiting-staging-checks https://github.com/measurement-factory/anubis#pull-request-labels M-cleared-for-merge https://github.com/measurement-factory/anubis#pull-request-labels labels Jun 2, 2024
@yadij yadij deleted the mingw-3 branch June 2, 2024 10:15
kinkie pushed a commit to kinkie/squid that referenced this pull request Jun 2, 2024
@rousskov
Copy link
Contributor

rousskov commented Jun 2, 2024

P.S. We should avoid (poor) code duplication that this PR and recent 1800e25 are creating, but I think we should continue to duplicate that code for a little bit longer before there are enough use cases to suggest a proper deduplication solution.

I assume you are referring to the pattern of 2 local variables with a reinterpret_cast (if not please correct me).

The pattern includes two local variable definition/initialization code, a reinterpret_cast, an assertion, and a conversion to an Ip::Address object (at least).

FWIW, I hope long term that we only need to de-duplicate the set/get syscalls and the rest are uncommon enough to be okay without anything special.

Yeah, let's see where these initial (and duplicated) changes lead us. I see no reason to discuss the details of that potential future duplication avoidance effort until we have more merged use cases. We are making good progress so far...

kinkie pushed a commit to kinkie/squid that referenced this pull request Jun 9, 2024
@kinkie kinkie mentioned this pull request Jun 9, 2024
kinkie pushed a commit to kinkie/squid that referenced this pull request Jun 22, 2024
kinkie pushed a commit to kinkie/squid that referenced this pull request Oct 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
M-merged https://github.com/measurement-factory/anubis#pull-request-labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants