diff --git a/src/sptps_speed.c b/src/sptps_speed.c
index d7332448..47a50fa9 100644
--- a/src/sptps_speed.c
+++ b/src/sptps_speed.c
@@ -28,11 +28,6 @@
 #include "ecdsagen.h"
 #include "sptps.h"
 
-static struct list_t *connection_list = NULL;
-static char *logfilename = NULL;
-static bool do_detach = false;
-static struct timeval now;
-
 static bool send_data(void *handle, uint8_t type, const void *data, size_t len) {
 	int fd = *(int *)handle;
 	send(fd, data, len, 0);
diff --git a/src/sptps_test.c b/src/sptps_test.c
index e8643603..2823400f 100644
--- a/src/sptps_test.c
+++ b/src/sptps_test.c
@@ -31,9 +31,6 @@
 #include "utils.h"
 
 
-static char *logfilename = NULL;
-static bool do_detach = false;
-
 static bool verbose;
 static bool readonly;
 static bool writeonly;
diff --git a/src/tincctl.c b/src/tincctl.c
index 0f396777..36c407f8 100644
--- a/src/tincctl.c
+++ b/src/tincctl.c
@@ -70,7 +70,6 @@ static int result;
 bool force = false;
 bool tty = true;
 bool confbasegiven = false;
-static bool netnamegiven = false;
 char *scriptinterpreter = NULL;
 char *scriptextension = "";
 static char *prompt;