mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	spa: bluez: dbus: use spa_strstartswith()
				
					
				
			This commit is contained in:
		
							parent
							
								
									8ca5c0f15b
								
							
						
					
					
						commit
						253c8b48fc
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -757,9 +757,9 @@ static int parse_modalias(const char *modalias, uint16_t *source, uint16_t *vend
 | 
			
		|||
	char *pos;
 | 
			
		||||
	unsigned int src, i, j, k;
 | 
			
		||||
 | 
			
		||||
	if (strncmp(modalias, "bluetooth:", strlen("bluetooth:")) == 0)
 | 
			
		||||
	if (spa_strstartswith(modalias, "bluetooth:"))
 | 
			
		||||
		src = SOURCE_ID_BLUETOOTH;
 | 
			
		||||
	else if (strncmp(modalias, "usb:", strlen("usb:")) == 0)
 | 
			
		||||
	else if (spa_strstartswith(modalias, "usb:"))
 | 
			
		||||
		src = SOURCE_ID_USB;
 | 
			
		||||
	else
 | 
			
		||||
		return -EINVAL;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue