summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/fid.c2
-rw-r--r--src/fnid.c3
-rw-r--r--src/lid.c2
-rw-r--r--src/xtokid.c2
4 files changed, 5 insertions, 4 deletions
diff --git a/src/fid.c b/src/fid.c
index 9869075..45c6853 100644
--- a/src/fid.c
+++ b/src/fid.c
@@ -60,7 +60,7 @@ static struct file_link **members_0;
static unsigned int bits_vec_size;
static char *hits_buf;
-static struct option const long_options[] =
+static const struct option const long_options[] =
{
{ "file", required_argument, 0, 'f' },
{ "help", no_argument, &show_help, 1 },
diff --git a/src/fnid.c b/src/fnid.c
index 0dbf269..d20c543 100644
--- a/src/fnid.c
+++ b/src/fnid.c
@@ -38,8 +38,9 @@ void usage (void);
char const *program_name;
static int show_version = 0;
static int show_help = 0;
+static struct file_link *cw_dlink;
+
struct idhead idh;
-struct file_link *cw_dlink;
/* How shall we separate file names? */
diff --git a/src/lid.c b/src/lid.c
index 4ca37a3..d7c3770 100644
--- a/src/lid.c
+++ b/src/lid.c
@@ -209,7 +209,7 @@ static query_func_t query_function;
static unsigned int frequency_low = 1;
static unsigned int frequency_high = USHRT_MAX;
-struct file_link *cw_dlink;
+static struct file_link *cw_dlink;
static struct file_link **members_0;
static struct option const long_options[] =
diff --git a/src/xtokid.c b/src/xtokid.c
index 1e5768e..5dc97fe 100644
--- a/src/xtokid.c
+++ b/src/xtokid.c
@@ -40,7 +40,7 @@ static char *lang_map_file_name = 0;
static int show_version = 0;
static int show_help = 0;
struct idhead idh;
-struct file_link *cw_dlink;
+static struct file_link *cw_dlink;
void
usage (void)