aboutsummaryrefslogtreecommitdiffstats
path: root/src/vlib
diff options
context:
space:
mode:
Diffstat (limited to 'src/vlib')
-rw-r--r--src/vlib/error.c5
-rw-r--r--src/vlib/error.h9
-rw-r--r--src/vlib/node.h4
3 files changed, 8 insertions, 10 deletions
diff --git a/src/vlib/error.c b/src/vlib/error.c
index f93b9a34d09..97cb0b52192 100644
--- a/src/vlib/error.c
+++ b/src/vlib/error.c
@@ -114,9 +114,8 @@ vlib_error_drop_buffers (vlib_main_t * vm,
/* Reserves given number of error codes for given node. */
void
-vlib_register_errors (vlib_main_t * vm,
- u32 node_index, u32 n_errors, char *error_strings[],
- vl_counter_t counters[])
+vlib_register_errors (vlib_main_t *vm, u32 node_index, u32 n_errors,
+ char *error_strings[], vlib_error_desc_t counters[])
{
vlib_error_main_t *em = &vm->error_main;
vlib_node_main_t *nm = &vm->node_main;
diff --git a/src/vlib/error.h b/src/vlib/error.h
index 2bffc6b9367..b921067ee84 100644
--- a/src/vlib/error.h
+++ b/src/vlib/error.h
@@ -56,7 +56,7 @@ typedef struct
char *name;
char *desc;
enum vl_counter_severity_e severity;
-} vl_counter_t;
+} vlib_error_desc_t;
typedef struct
{
@@ -68,14 +68,13 @@ typedef struct
/* Counter structures in heap. Heap index
indexes counter vector. */
- vl_counter_t *counters_heap;
+ vlib_error_desc_t *counters_heap;
} vlib_error_main_t;
/* Per node error registration. */
-void vlib_register_errors (struct vlib_main_t *vm,
- u32 node_index,
+void vlib_register_errors (struct vlib_main_t *vm, u32 node_index,
u32 n_errors, char *error_strings[],
- vl_counter_t counters[]);
+ vlib_error_desc_t counters[]);
unformat_function_t unformat_vlib_error;
diff --git a/src/vlib/node.h b/src/vlib/node.h
index fd792dc3fa6..a06c20211d4 100644
--- a/src/vlib/node.h
+++ b/src/vlib/node.h
@@ -115,7 +115,7 @@ typedef struct _vlib_node_registration
/* Error strings indexed by error code for this node. */
char **error_strings;
- vl_counter_t *error_counters;
+ vlib_error_desc_t *error_counters;
/* Buffer format/unformat for this node. */
format_function_t *format_buffer;
@@ -316,7 +316,7 @@ typedef struct vlib_node_t
u32 error_heap_index;
/* Counter structures indexed by counter code for this node. */
- vl_counter_t *error_counters;
+ vlib_error_desc_t *error_counters;
/* Vector of next node names.
Only used before next_nodes array is initialized. */