The open source OpenXR runtime

d/vive: Return NULL instead of false

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2485>

+2 -2
+1 -1
src/xrt/drivers/vive/vive_controller.c
··· 1067 1067 int ret = os_mutex_init(&d->fusion.mutex); 1068 1068 if (ret != 0) { 1069 1069 VIVE_ERROR(d, "Failed to init 3dof mutex"); 1070 - return false; 1070 + return NULL; 1071 1071 } 1072 1072 1073 1073 /* default values, will be queried from device */
+1 -1
src/xrt/drivers/vive/vive_device.c
··· 1218 1218 ret = os_mutex_init(&d->fusion.mutex); 1219 1219 if (ret != 0) { 1220 1220 VIVE_ERROR(d, "Failed to init 3dof mutex"); 1221 - return false; 1221 + return NULL; 1222 1222 } 1223 1223 1224 1224 ret = os_thread_helper_start(&d->sensors_thread, vive_sensors_run_thread, d);