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

Made masscan compatible to C++ compilers #585

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

KOLANICH
Copy link

@KOLANICH KOLANICH commented Apr 9, 2021

  • mostly cast fixes for malloc
  • typed some ints to the correct enums, which also benefits clarity
  • fixed some other variables types and eliminated some UB as signed-unsigned comparison
  • added a missing check for a returned value
  • made signatures consistent (plain C is shit that ignores the inconsistencies, that can cause hard-to-debug errors, it is another reason to never use plain C compiler)
  • added some abstraction layer addressing the deprecations in C++ >=17

Also the editor has removed the unneeded whitespaces, it was noticed too late to address, so let these changes be here too.

* mostly cast fixes for malloc
* typed some ints to the correct enums, which also benefits clarity
* fixed some other variables types and eliminated some UB as signed-unsigned comparison
* added a missing check for a returned value
* made signatures consistent (plain C is shit that ignores the inconsistencies, that can cause hard-to-debug errors, it is another reason to never use plain C compiler)
* added some abstraction layer addressing the deprecations in C++ >=17

Also the editor has removed the unneeded whitespaces, it was noticed too late to address, so let these changes be here too.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant