From 7a638873128dedfcad1e77d87c3d2c25516abaf2 Mon Sep 17 00:00:00 2001 From: Jens Steinhauser Date: Tue, 15 Jul 2014 17:19:55 +0200 Subject: [PATCH] Remove unnecessary extern option variable declarations. --- decode.c | 2 -- device.c | 2 -- input.c | 5 ----- session.c | 10 ---------- show.c | 3 --- 5 files changed, 22 deletions(-) diff --git a/decode.c b/decode.c index 707aefb..7712ea1 100644 --- a/decode.c +++ b/decode.c @@ -30,8 +30,6 @@ static GHashTable *pd_binary_visible = NULL; static GHashTable *pd_channel_maps = NULL; extern struct srd_session *srd_sess; -extern gint opt_loglevel; - static int opts_to_gvar(struct srd_decoder *dec, GHashTable *hash, GHashTable **options) diff --git a/device.c b/device.c index b8709dc..90c9fc3 100644 --- a/device.c +++ b/device.c @@ -23,8 +23,6 @@ #include extern struct sr_context *sr_ctx; -extern gchar *opt_drv; -extern gchar *opt_channel_group; /* Convert driver options hash to GSList of struct sr_config. */ static GSList *hash_to_hwopt(GHashTable *hash) diff --git a/input.c b/input.c index 566fd1d..d2adde6 100644 --- a/input.c +++ b/input.c @@ -25,11 +25,6 @@ #include #include -extern gchar *opt_input_file; -extern gchar *opt_input_format; -extern gchar *opt_channels; - - /** * Return the input file format which the CLI tool should use. * diff --git a/session.c b/session.c index 27fa262..07144aa 100644 --- a/session.c +++ b/session.c @@ -28,16 +28,6 @@ static int default_output_format = FALSE; static uint64_t limit_samples = 0; static uint64_t limit_frames = 0; -extern gchar *opt_output_file; -extern gchar *opt_output_format; -extern gchar *opt_pds; -extern gboolean opt_wait_trigger; -extern gchar *opt_time; -extern gchar *opt_samples; -extern gchar *opt_frames; -extern gchar *opt_continuous; -extern gchar *opt_config; -extern gchar *opt_triggers; #ifdef HAVE_SRD extern struct srd_session *srd_sess; #endif diff --git a/show.c b/show.c index 4cdf704..08abf6c 100644 --- a/show.c +++ b/show.c @@ -21,9 +21,6 @@ #include #include -extern gint opt_loglevel; -extern gchar *opt_pds; - static gint sort_inputs(gconstpointer a, gconstpointer b) { const struct sr_input_format *ia = a, *ib = b; -- 2.30.2