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

invalid use of void expression #65

Closed
koryphaee opened this issue Mar 18, 2018 · 1 comment
Closed

invalid use of void expression #65

koryphaee opened this issue Mar 18, 2018 · 1 comment

Comments

@koryphaee
Copy link

This line:

*skb_put(skb, 1) = 0x00;
gives me a warning "dereferencing 'void *' pointer" and an error "invalid use of void expression" when I try to make. I use Void Linux with the kernel 4.15.9_1, gcc is version 7.3.0 and my bluetooth/wifi chip is RTL8723BE.

@koryphaee
Copy link
Author

I found a solution here: https://ubuntuforums.org/showthread.php?t=2353780
It compiles if you change the line to this: *(ushort*)skb_put(skb, 1) = 0x00;

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

No branches or pull requests

1 participant