summaryrefslogtreecommitdiff
path: root/mactelnet.c
diff options
context:
space:
mode:
authorHåkon Nessjøen <haakon.nessjoen@gmail.com>2010-12-26 17:57:47 +0100
committerHåkon Nessjøen <haakon.nessjoen@gmail.com>2010-12-26 17:57:47 +0100
commit423615514bd1cd5e5a90b68ee25f9fbb030f7af1 (patch)
tree386564d57331a1b9e7a363b46697bfad0d49dc4c /mactelnet.c
parent98b82ee3a77ef4ffd79472e0fd56d6deced1d8e4 (diff)
downloadMAC-Telnet-423615514bd1cd5e5a90b68ee25f9fbb030f7af1.tar.gz
MAC-Telnet-423615514bd1cd5e5a90b68ee25f9fbb030f7af1.zip
Janitor work
Diffstat (limited to 'mactelnet.c')
-rw-r--r--mactelnet.c38
1 files changed, 19 insertions, 19 deletions
diff --git a/mactelnet.c b/mactelnet.c
index eccd959..e0549c1 100644
--- a/mactelnet.c
+++ b/mactelnet.c
@@ -42,34 +42,34 @@
#define PROGRAM_NAME "MAC-Telnet"
#define PROGRAM_VERSION "0.2"
-int sockfd;
-int insockfd;
-int device_index;
-unsigned int outcounter = 0;
-unsigned int incounter = 0;
-int sessionkey = 0;
-int running = 1;
+static int sockfd;
+static int insockfd;
+static int device_index;
+static unsigned int outcounter = 0;
+static unsigned int incounter = 0;
+static int sessionkey = 0;
+static int running = 1;
-unsigned char broadcast_mode = 1;
-unsigned char terminal_mode = 0;
+static unsigned char broadcast_mode = 1;
+static unsigned char terminal_mode = 0;
-unsigned char srcmac[ETH_ALEN];
-unsigned char dstmac[ETH_ALEN];
+static unsigned char srcmac[ETH_ALEN];
+static unsigned char dstmac[ETH_ALEN];
-struct in_addr sourceip;
-struct in_addr destip;
-int sourceport;
+static struct in_addr sourceip;
+static struct in_addr destip;
+static int sourceport;
-int connect_timeout = CONNECT_TIMEOUT;
+static int connect_timeout = CONNECT_TIMEOUT;
-unsigned char encryptionkey[128];
-char username[255];
-char password[255];
+static unsigned char encryptionkey[128];
+static char username[255];
+static char password[255];
/* Protocol data direction */
unsigned char mt_direction_fromserver = 0;
-unsigned int send_socket;
+static unsigned int send_socket;
static void print_version() {
fprintf(stderr, PROGRAM_NAME " " PROGRAM_VERSION "\n");