syntax: in zig use ptr.elem instead of ptr.*.elem
This commit is contained in:
		
							parent
							
								
									ffadcffdc1
								
							
						
					
					
						commit
						9e68abf2a0
					
				| @ -22,7 +22,7 @@ fn event_equal(e1: *const c.input_event, e2: *const c.input_event) bool { | ||||
| } | ||||
| 
 | ||||
| fn event_write(event: *const c.input_event) !void { | ||||
|     if (c.libevdev_uinput_write_event(@ptrCast(uidev), event.*.type, event.*.code, event.*.value) < 0) { | ||||
|     if (c.libevdev_uinput_write_event(@ptrCast(uidev), event.type, event.code, event.value) < 0) { | ||||
|         return error.writeFailed; | ||||
|     } | ||||
| } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user