mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	explicitly ignore unused return value
fixes issue#1182
This commit is contained in:
		
							parent
							
								
									94ad169eb6
								
							
						
					
					
						commit
						974be01e83
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -940,8 +940,8 @@ static void invoke_swaybar(struct bar_config *bar) {
 | 
				
			||||||
			if (!command) {
 | 
								if (!command) {
 | 
				
			||||||
				const char msg[] = "Unable to allocate swaybar command string";
 | 
									const char msg[] = "Unable to allocate swaybar command string";
 | 
				
			||||||
				int len = sizeof(msg);
 | 
									int len = sizeof(msg);
 | 
				
			||||||
				write(filedes[1], &len, sizeof(int));
 | 
									if (write(filedes[1], &len, sizeof(int))) {};
 | 
				
			||||||
				write(filedes[1], msg, len);
 | 
									if (write(filedes[1], msg, len)) {};
 | 
				
			||||||
				close(filedes[1]);
 | 
									close(filedes[1]);
 | 
				
			||||||
				_exit(EXIT_FAILURE);
 | 
									_exit(EXIT_FAILURE);
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue