mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	alsa-udev: avoid meth with void pointers
This commit is contained in:
		
							parent
							
								
									8e43c41ac1
								
							
						
					
					
						commit
						0397d7b2be
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -675,8 +675,8 @@ static void impl_on_notify_events(struct spa_source *source)
 | 
			
		|||
			struct device *device;
 | 
			
		||||
 | 
			
		||||
			event = (const struct inotify_event *) p;
 | 
			
		||||
			spa_assert_se(e - p >= (ptrdiff_t)sizeof(struct inotify_event) &&
 | 
			
		||||
			              e - p - sizeof(struct inotify_event) >= event->len &&
 | 
			
		||||
			spa_assert_se(SPA_PTRDIFF(e, p) >= (ptrdiff_t)sizeof(struct inotify_event) &&
 | 
			
		||||
			              SPA_PTRDIFF(e, p) - sizeof(struct inotify_event) >= event->len &&
 | 
			
		||||
			              "bad event from kernel");
 | 
			
		||||
 | 
			
		||||
			/* Device becomes accessible or not busy */
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue