summaryrefslogtreecommitdiffstats
path: root/src/tools/g2/clib.c
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2019-06-14 12:11:37 -0400
committerDave Wallace <dwallacelf@gmail.com>2019-06-14 19:30:44 +0000
commitb00b510cd09418c266c515319a3ecdff42be7b5c (patch)
tree6a59be5bb3ce2d478b3941619819d3862066f255 /src/tools/g2/clib.c
parent9c8ca8dd3197e40dfcb8bcecd95c10eeb56239ed (diff)
g2: clean up compile/link errors
Many missing "extern" declarations, it's hard to imagine why the related compile/link errors just showed up. Type: fix Change-Id: I0878bf5fdb10ffdd8e0c49c9e5153cddaf3bc1fd Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'src/tools/g2/clib.c')
-rw-r--r--src/tools/g2/clib.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/tools/g2/clib.c b/src/tools/g2/clib.c
index 845026b6b93..da9fd52c2d0 100644
--- a/src/tools/g2/clib.c
+++ b/src/tools/g2/clib.c
@@ -1,4 +1,4 @@
-/*
+/*
*------------------------------------------------------------------
* Copyright (c) 2009-2016 Cisco and/or its affiliates.
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -35,19 +35,19 @@
#include "cpel.h"
#include "g2.h"
-int widest_track_format;
+extern int widest_track_format;
typedef struct bound_track_ {
u32 track;
u8 *track_str;
} bound_track_t;
-bound_track_t *bound_tracks;
+extern bound_track_t *bound_tracks;
-uword *the_evtdef_hash; /* (event-id, event-definition) hash */
-uword *the_trackdef_hash; /* (track-id, track-definition) hash */
+extern uword *the_evtdef_hash; /* (event-id, event-definition) hash */
+extern uword *the_trackdef_hash; /* (track-id, track-definition) hash */
-elog_main_t elog_main;
+extern elog_main_t elog_main;
void *get_clib_event (unsigned int datum)
{