Skip to content

Use stdbool instead of typedef uint8_t bool in dns probe module#790

Merged
phillip-stephens merged 1 commit intozmap:mainfrom
droe:droe/fix-dns-bool
Feb 24, 2024
Merged

Use stdbool instead of typedef uint8_t bool in dns probe module#790
phillip-stephens merged 1 commit intozmap:mainfrom
droe:droe/fix-dns-bool

Conversation

@droe
Copy link
Contributor

@droe droe commented Feb 24, 2024

Convert dns probe module to use proper stdbool booleans instead of uint8_t.

Paves the way for using stdbool in headers that are included by src/probe_modules/module_dns.c, removes the need for undefining bool for NetBSD, and is more consistent with existing other use of bool in ZMap's codebase.

Paves the way for using stdbool in headers that are included by
`src/probe_modules/module_dns.c` and allows the removal of undefining
bool for NetBSD.
@phillip-stephens phillip-stephens self-requested a review February 24, 2024 04:42
Copy link
Contributor

@phillip-stephens phillip-stephens left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the improvement!

@phillip-stephens phillip-stephens merged commit e7f085b into zmap:main Feb 24, 2024
@droe droe deleted the droe/fix-dns-bool branch March 11, 2024 08:01
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.

2 participants