diff --git a/src/sbbs3/main.cpp b/src/sbbs3/main.cpp
index e0cad9e35112ac86de08edad0c1bb66b48ee4bb3..7bd53240902f29a34b8eddfd7c7475f30b1218af 100644
--- a/src/sbbs3/main.cpp
+++ b/src/sbbs3/main.cpp
@@ -1754,7 +1754,6 @@ static int crypt_pop_channel_data(sbbs_t *sbbs, char *inbuf, int want, int *got)
 	int cid;
 	char *cname;
 	int ret;
-	BOOL rd;
 
 	*got=0;
 	while(sbbs->online && sbbs->client_socket!=INVALID_SOCKET
@@ -4804,7 +4803,6 @@ void DLLCALL bbs_thread(void* arg)
 	struct main_sock_cb_data	ssh_cb;
 	struct main_sock_cb_data	rlogin_cb;
 	void						*ts_cb;
-	int							err;
 
     if(startup==NULL) {
     	sbbs_beep(100,500);