mirror of
				https://github.com/neovim/neovim.git
				synced 2025-11-04 01:34:25 +00:00 
			
		
		
		
	Remove unused return values.
This commit is contained in:
		
				
					committed by
					
						
						Thiago de Arruda
					
				
			
			
				
	
			
			
			
						parent
						
							b552a202f4
						
					
				
				
					commit
					e59f9872e5
				
			
							
								
								
									
										12
									
								
								src/os/fs.c
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								src/os/fs.c
									
									
									
									
									
								
							@@ -196,8 +196,8 @@ static int is_executable(char_u *name);
 | 
				
			|||||||
static int is_executable_in_path(char_u *name);
 | 
					static int is_executable_in_path(char_u *name);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/*
 | 
					/*
 | 
				
			||||||
 * Return 1 if "name" can be found in $PATH and executed, 0 if not.
 | 
					 * Return TRUE if "name" is executable and can be found in $PATH, is absolute
 | 
				
			||||||
 * Return -1 if unknown.
 | 
					 * or relative to current dir, FALSE if not.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
int mch_can_exe(char_u *name)
 | 
					int mch_can_exe(char_u *name)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
@@ -229,18 +229,22 @@ static int is_executable(char_u *name)
 | 
				
			|||||||
  return FALSE;
 | 
					  return FALSE;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/*
 | 
				
			||||||
 | 
					 * Return TRUE if "name" can be found in $PATH and executed, FALSE if not or an
 | 
				
			||||||
 | 
					 * error occurs.
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
static int is_executable_in_path(char_u *name)
 | 
					static int is_executable_in_path(char_u *name)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
  char_u *path = (char_u *)getenv("PATH");
 | 
					  char_u *path = (char_u *)getenv("PATH");
 | 
				
			||||||
  /* PATH environment variable does not exist or is empty. */
 | 
					  /* PATH environment variable does not exist or is empty. */
 | 
				
			||||||
  if (path == NULL || *path == NUL) {
 | 
					  if (path == NULL || *path == NUL) {
 | 
				
			||||||
    return -1;
 | 
					    return FALSE;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  int buf_len = STRLEN(name) + STRLEN(path) + 2;
 | 
					  int buf_len = STRLEN(name) + STRLEN(path) + 2;
 | 
				
			||||||
  char_u *buf = alloc((unsigned)(buf_len));
 | 
					  char_u *buf = alloc((unsigned)(buf_len));
 | 
				
			||||||
  if (buf == NULL) {
 | 
					  if (buf == NULL) {
 | 
				
			||||||
    return -1;
 | 
					    return FALSE;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  /*
 | 
					  /*
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user