Skip to content
This repository was archived by the owner on Jan 10, 2025. It is now read-only.

automatically convert ioctl request parameter #178

Closed
wants to merge 3 commits into from

Conversation

igalic
Copy link
Contributor

@igalic igalic commented Feb 19, 2021

FreeBSD ioctl(2) takes unsigned long long as request parameter.
Here we automatically convert it with .into() to whatever the libc underneath needs

This fixes #177

@swsnr
Copy link
Owner

swsnr commented Feb 19, 2021

@igalic I've hopefully fixed the clippy errors on main; would you mind to rebase this PR onto main? Sorry for the noise.

FreeBSD ioctl(2) takes unsigned long long as request parameter.
Here we automatically convert it with `.into()` to whatever the libc underneath needs

This fixes swsnr#177
@igalic
Copy link
Contributor Author

igalic commented Feb 20, 2021

so, finally got to my laptop (the initial patch was created on my phone)

@igalic
Copy link
Contributor Author

igalic commented Feb 20, 2021

failing as predicted.
Should i annotate the line with #[allow(clippy:::useless_conversion)] ?

@swsnr
Copy link
Owner

swsnr commented Feb 21, 2021

Sure. Just do add a comment about the reason (including a link to the issue).

@swsnr
Copy link
Owner

swsnr commented Feb 22, 2021

Merged with d44fd01

@swsnr swsnr closed this Feb 22, 2021
@swsnr
Copy link
Owner

swsnr commented Feb 22, 2021

I released a new version with this fix.

@igalic igalic deleted the patch-1 branch February 22, 2021 22:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

compiling fails on FreeBSD 13
2 participants