mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	treewide: replace strcmp() == 0 with spa_streq()
This change is only done in source files for now, header files will be done separately.
This commit is contained in:
		
							parent
							
								
									d8a9534a9a
								
							
						
					
					
						commit
						7697ed0757
					
				
					 130 changed files with 817 additions and 675 deletions
				
			
		| 
						 | 
				
			
			@ -33,6 +33,7 @@
 | 
			
		|||
#include "config.h"
 | 
			
		||||
 | 
			
		||||
#include <spa/utils/result.h>
 | 
			
		||||
#include <spa/utils/string.h>
 | 
			
		||||
#include <spa/utils/json.h>
 | 
			
		||||
#include <spa/param/profiler.h>
 | 
			
		||||
#include <spa/debug/pod.h>
 | 
			
		||||
| 
						 | 
				
			
			@ -299,7 +300,7 @@ static uint32_t channel_from_name(const char *name)
 | 
			
		|||
{
 | 
			
		||||
	int i;
 | 
			
		||||
	for (i = 0; spa_type_audio_channel[i].name; i++) {
 | 
			
		||||
		if (strcmp(name, spa_debug_type_short_name(spa_type_audio_channel[i].name)) == 0)
 | 
			
		||||
		if (spa_streq(name, spa_debug_type_short_name(spa_type_audio_channel[i].name)))
 | 
			
		||||
			return spa_type_audio_channel[i].type;
 | 
			
		||||
	}
 | 
			
		||||
	return SPA_AUDIO_CHANNEL_UNKNOWN;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue