error: Privatize error_print_loc
Cc: Luiz Capitulino <lcapitulino@redhat.com> Cc: Markus Armbruster <armbru@redhat.com> Signed-off-by: Cole Robinson <crobinso@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
This commit is contained in:
		
							parent
							
								
									027a79c373
								
							
						
					
					
						commit
						d876f60d14
					
				@ -37,7 +37,6 @@ void loc_set_file(const char *fname, int lno);
 | 
				
			|||||||
void error_vprintf(const char *fmt, va_list ap) GCC_FMT_ATTR(1, 0);
 | 
					void error_vprintf(const char *fmt, va_list ap) GCC_FMT_ATTR(1, 0);
 | 
				
			||||||
void error_printf(const char *fmt, ...) GCC_FMT_ATTR(1, 2);
 | 
					void error_printf(const char *fmt, ...) GCC_FMT_ATTR(1, 2);
 | 
				
			||||||
void error_printf_unless_qmp(const char *fmt, ...) GCC_FMT_ATTR(1, 2);
 | 
					void error_printf_unless_qmp(const char *fmt, ...) GCC_FMT_ATTR(1, 2);
 | 
				
			||||||
void error_print_loc(void);
 | 
					 | 
				
			||||||
void error_set_progname(const char *argv0);
 | 
					void error_set_progname(const char *argv0);
 | 
				
			||||||
void error_report(const char *fmt, ...) GCC_FMT_ATTR(1, 2);
 | 
					void error_report(const char *fmt, ...) GCC_FMT_ATTR(1, 2);
 | 
				
			||||||
const char *error_get_progname(void);
 | 
					const char *error_get_progname(void);
 | 
				
			||||||
 | 
				
			|||||||
@ -165,7 +165,7 @@ const char *error_get_progname(void)
 | 
				
			|||||||
/*
 | 
					/*
 | 
				
			||||||
 * Print current location to current monitor if we have one, else to stderr.
 | 
					 * Print current location to current monitor if we have one, else to stderr.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
void error_print_loc(void)
 | 
					static void error_print_loc(void)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    const char *sep = "";
 | 
					    const char *sep = "";
 | 
				
			||||||
    int i;
 | 
					    int i;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user