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

Fix ioctl sign-extension warning on FreeBSD #393

Merged
merged 1 commit into from
May 29, 2017

Conversation

nachtbraker
Copy link
Contributor

I was running Motion 4.0.1 on FreeBSD 10.3-STABLE amd64. After connecting a webcam (Logitech C920). the console gives a continues stream of messages like this:

May 26 13:42:11 aurora kernel: WARNING pid 40273 (motion): ioctl sign-extension ioctl ffffffffc058560f
May 26 13:42:11 aurora kernel: WARNING pid 40273 (motion): ioctl sign-extension ioctl ffffffffc0585611
May 26 13:42:11 aurora kernel: WARNING pid 40273 (motion): ioctl sign-extension ioctl ffffffffc058560f
May 26 13:42:11 aurora kernel: WARNING pid 40273 (motion): ioctl sign-extension ioctl ffffffffc0585611
... etc.

This patch fixes that by making sure that the ioct() call gets a proper unsigned long request parameter.

@jogu jogu merged commit a801f19 into Motion-Project:master May 29, 2017
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.

None yet

2 participants