From 6c9463d3f240f79fd46665c3b21e5152e51804f5 Mon Sep 17 00:00:00 2001 From: Steve Hill Date: Wed, 22 Jul 2009 17:18:56 +0000 Subject: lib: Improve error reporting from broken config files cleans up a few items with error reporting at startup: - Line numbers are now reported alongside error text - All errors now go to stderr instead of some stderr and some stdout - The vty buffer is flushed so that errors now come out in the right order --- lib/command.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/command.h') diff --git a/lib/command.h b/lib/command.h index 1275efee..541b259a 100644 --- a/lib/command.h +++ b/lib/command.h @@ -341,7 +341,7 @@ extern void cmd_free_strvec (vector); extern vector cmd_describe_command (vector, struct vty *, int *status); extern char **cmd_complete_command (vector, struct vty *, int *status); extern const char *cmd_prompt (enum node_type); -extern int config_from_file (struct vty *, FILE *); +extern int config_from_file (struct vty *, FILE *, unsigned int *line_num); extern enum node_type node_parent (enum node_type); extern int cmd_execute_command (vector, struct vty *, struct cmd_element **, int); extern int cmd_execute_command_strict (vector, struct vty *, struct cmd_element **); -- cgit v1.2.3