diff --git a/src/dir_export.c b/src/dir_export.c
index 56e41552166235a1522066a9fc524623aebbaed9..6a7fe8dde8a4d531b9624dd0c59a7d043db0415d 100644
--- a/src/dir_export.c
+++ b/src/dir_export.c
@@ -34,7 +34,7 @@
 static FILE *stream;
 
 /* Stack of device IDs, also used to keep track of the level of nesting */
-struct stack {
+static struct stack {
   uint64_t *list;
   int size, top;
 } stack;
diff --git a/src/dir_import.c b/src/dir_import.c
index a41b86c4b109c59d1d7f505cbda5e907514d992b..3a5c2a35bcb1dbdbb2975692f3ef6652edee6457 100644
--- a/src/dir_import.c
+++ b/src/dir_import.c
@@ -59,7 +59,7 @@ int dir_import_active = 0;
 
 
 /* Use a struct for easy batch-allocation and deallocation of state data. */
-struct ctx {
+static struct ctx {
   FILE *stream;
 
   int line;
diff --git a/src/exclude.c b/src/exclude.c
index cc5c57a63571d1f2e99a55042e8da65cb7796994..c9fb7f56d161568251ee7d4dd9e5ac347453ef65 100644
--- a/src/exclude.c
+++ b/src/exclude.c
@@ -31,7 +31,7 @@
 #include <fnmatch.h>
 
 
-struct exclude {
+static struct exclude {
   char *pattern;
   struct exclude *next;
 } *excludes = NULL;
diff --git a/src/help.c b/src/help.c
index c1b2f6353bed85e7b851f09b261960edfc15321c..f6e91c58fceab00073027e9f57e2378c930bb15e 100644
--- a/src/help.c
+++ b/src/help.c
@@ -29,11 +29,11 @@
 #include <string.h>
 
 
-int page, start;
+static int page, start;
 
 
 #define KEYS 19
-const char *keys[KEYS*2] = {
+static const char *keys[KEYS*2] = {
 /*|----key----|  |----------------description----------------|*/
         "up, k", "Move cursor up",
       "down, j", "Move cursor down",
diff --git a/src/util.c b/src/util.c
index 6cf408078922bfd3e5d97905f1c16de415805f9e..84489568f7f73ee14732f8dde84350ab4ac8e2da 100644
--- a/src/util.c
+++ b/src/util.c
@@ -38,7 +38,7 @@ int uic_theme;
 int winrows, wincols;
 int subwinr, subwinc;
 int si;
-char thou_sep;
+static char thou_sep;
 
 
 char *cropstr(const char *from, int s) {