atduskgreg/ofxUVC — pull request #1 by paulobarcelos (2012-10-14 12:50:35+00:00)
Title: Pointer casting to allow compilling

I could not compile in Xcode 4.4.1 on Lion as it keeps complaining that on these lines

- (uvc_controls_t *) getControls{
return &uvc_controls;
}

UVCCameraControl.m:373:12: Cannot initialize return object of type 'uvc_controls_t *' with an rvalue of type 'const uvc_controls_t *'

So, all I did was to cast the pointer there, and now it works fine

- (uvc_controls_t *) getControls{
return (uvc_controls_t *)&uvc_controls;
}