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
							
								
									95a84e797a
								
							
						
					
					
						commit
						522f87d5ea
					
				
					 40 changed files with 83 additions and 79 deletions
				
			
		| 
						 | 
				
			
			@ -1735,7 +1735,7 @@ static bool do_permissions(struct data *data, const char *cmd, char *args, char
 | 
			
		|||
		*error = spa_aprintf("%s: unknown global %d", cmd, id);
 | 
			
		||||
		return false;
 | 
			
		||||
	}
 | 
			
		||||
	if (strcmp(global->type, PW_TYPE_INTERFACE_Client) != 0) {
 | 
			
		||||
	if (!spa_streq(global->type, PW_TYPE_INTERFACE_Client)) {
 | 
			
		||||
		*error = spa_aprintf("object %d is not a client", atoi(a[0]));
 | 
			
		||||
		return false;
 | 
			
		||||
	}
 | 
			
		||||
| 
						 | 
				
			
			@ -1775,7 +1775,7 @@ static bool do_get_permissions(struct data *data, const char *cmd, char *args, c
 | 
			
		|||
		*error = spa_aprintf("%s: unknown global %d", cmd, id);
 | 
			
		||||
		return false;
 | 
			
		||||
	}
 | 
			
		||||
	if (strcmp(global->type, PW_TYPE_INTERFACE_Client) != 0) {
 | 
			
		||||
	if (!spa_streq(global->type, PW_TYPE_INTERFACE_Client)) {
 | 
			
		||||
		*error = spa_aprintf("object %d is not a client", atoi(a[0]));
 | 
			
		||||
		return false;
 | 
			
		||||
	}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue