Fixes for warnings in FreeBSD build
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
		@@ -721,8 +721,8 @@ static void print_found(const char *line)
 | 
			
		||||
	while (match_status == 0) {
 | 
			
		||||
		char *new = xasprintf("%s%.*s"HIGHLIGHT"%.*s"NORMAL,
 | 
			
		||||
				growline ? growline : "",
 | 
			
		||||
				match_structs.rm_so, str,
 | 
			
		||||
				match_structs.rm_eo - match_structs.rm_so,
 | 
			
		||||
				(int)match_structs.rm_so, str,
 | 
			
		||||
				(int)(match_structs.rm_eo - match_structs.rm_so),
 | 
			
		||||
						str + match_structs.rm_so);
 | 
			
		||||
		free(growline);
 | 
			
		||||
		growline = new;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user