-
Notifications
You must be signed in to change notification settings - Fork 7
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
failed in cargo build #3
Comments
yaoyaoio
changed the title
arguments to this function are incorrect
failed in cargo build
Mar 7, 2023
anakryiko
added a commit
that referenced
this issue
Mar 8, 2023
Seems like CStr::from_ptr is expecting a pointer to c_char, not i8 (as you could get from documentation at [0]). So cast to c_char to solve the problem. [0] https://doc.rust-lang.org/std/ffi/struct.CStr.html#impl-CStr Fixes: #3 Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
anakryiko
added a commit
that referenced
this issue
Mar 8, 2023
Seems like CStr::from_ptr is expecting a pointer to c_char, not i8 (as you could get from documentation at [0]). So cast to c_char to solve the problem. [0] https://doc.rust-lang.org/std/ffi/struct.CStr.html#impl-CStr Fixes: #3 Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Please see if #4 fixes the issue. Thanks for reporting! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, How to solve this problem?
The text was updated successfully, but these errors were encountered: