static
authorGuus Sliepen <guus@tinc-vpn.org>
Mon, 1 Nov 2004 17:02:19 +0000 (17:02 +0000)
committerGuus Sliepen <guus@tinc-vpn.org>
Mon, 1 Nov 2004 17:02:19 +0000 (17:02 +0000)
src/cygwin/device.c
src/darwin/device.c
src/freebsd/device.c
src/linux/device.c
src/mingw/device.c
src/netbsd/device.c
src/openbsd/device.c
src/raw_socket/device.c
src/solaris/device.c
src/uml_socket/device.c

index 2818cd257dc73537dcd17260166596f1c977c3c2..e96ef1d993429cb00e4b8bd05a54b9cf204a05d2 100644 (file)
@@ -40,11 +40,11 @@ char *device = NULL;
 char *iface = NULL;
 char *device_info = NULL;
 
-int device_total_in = 0;
-int device_total_out = 0;
+static int device_total_in = 0;
+static int device_total_out = 0;
 
-pid_t reader_pid;
-int sp[2];
+static pid_t reader_pid;
+static int sp[2];
 
 bool setup_device(void)
 {
index c3f3c0b85878fc704f5e47a04bd6087ee25701a0..691a40848fe7d6f0de4801a07e988c890c4720f3 100644 (file)
@@ -39,8 +39,8 @@ int device_fd = -1;
 char *device;
 char *iface;
 char *device_info;
-int device_total_in = 0;
-int device_total_out = 0;
+static int device_total_in = 0;
+static int device_total_out = 0;
 static device_type_t device_type = DEVICE_TYPE_TUN;
 
 bool setup_device(void)
index 43dbb920d85524dd97496c8217042504db5aeec8..2d9a0eb2c4beb61abefb24f0431ab3e148cef1c1 100644 (file)
@@ -33,8 +33,8 @@ int device_fd = -1;
 char *device;
 char *iface;
 char *device_info;
-int device_total_in = 0;
-int device_total_out = 0;
+static int device_total_in = 0;
+static int device_total_out = 0;
 
 bool setup_device(void)
 {
index 74e394733126156a94b8202e332b52198b4778bc..4299a9342ccba7ca352f759145393b9a1adcde9f 100644 (file)
@@ -46,14 +46,14 @@ typedef enum device_type_t {
 } device_type_t;
 
 int device_fd = -1;
-device_type_t device_type;
+static device_type_t device_type;
 char *device;
 char *iface;
 char ifrname[IFNAMSIZ];
 char *device_info;
 
-int device_total_in = 0;
-int device_total_out = 0;
+static int device_total_in = 0;
+static int device_total_out = 0;
 
 bool setup_device(void)
 {
index 2d2b9250c77fb771b3bd25a522725055eff99ddf..020632680b565cf338dc1392275001951cd9c872 100644 (file)
 #include "mingw/common.h"
 
 int device_fd = 0;
-HANDLE device_handle = INVALID_HANDLE_VALUE;
+static HANDLE device_handle = INVALID_HANDLE_VALUE;
 char *device = NULL;
 char *iface = NULL;
 char *device_info = NULL;
 
-int device_total_in = 0;
-int device_total_out = 0;
+static int device_total_in = 0;
+static int device_total_out = 0;
 
 extern char *myport;
 
index 43628e7f5872a2d91c577a840351385a0565f1b0..53198e4c00ff8b9e6d5859b79dce6a2e430ffd9e 100644 (file)
@@ -37,8 +37,8 @@ char *device;
 char *iface;
 char *device_info;
 
-int device_total_in = 0;
-int device_total_out = 0;
+static int device_total_in = 0;
+static int device_total_out = 0;
 
 bool setup_device(void)
 {
index aa0150a992b9b6829e5ded7c79249a10ab89604e..92c3c03010c24114a9563e3116abe436098d86e8 100644 (file)
 
 #define DEFAULT_DEVICE "/dev/tun0"
 
-#define DEVICE_TYPE_ETHERTAP 0
-#define DEVICE_TYPE_TUNTAP 1
-
 int device_fd = -1;
 char *device;
 char *iface;
 char *device_info;
 
-int device_total_in = 0;
-int device_total_out = 0;
+static int device_total_in = 0;
+static int device_total_out = 0;
 
 bool setup_device(void)
 {
index 0de3fd6731b3358ba909575676e824248e87e945..188cb2ec82a699e7ed3a1e1e51d79218fbee80a3 100644 (file)
@@ -48,8 +48,8 @@ char *interface;
 char ifrname[IFNAMSIZ];
 char *device_info;
 
-int device_total_in = 0;
-int device_total_out = 0;
+static int device_total_in = 0;
+static int device_total_out = 0;
 
 bool setup_device(void)
 {
index 89b5f797364bd110f5b82df1b37489ffa2d0c6cd..4bd88d73474ab1f75738174a48bd81f46c17b8c5 100644 (file)
 int device_fd = -1;
 char *device = NULL;
 char *iface = NULL;
-char ifrname[IFNAMSIZ];
 char *device_info = NULL;
 
-int device_total_in = 0;
-int device_total_out = 0;
+static int device_total_in = 0;
+static int device_total_out = 0;
 
 bool setup_device(void)
 {
index 528a66f05dafed7813d342cf913b8d14201154be..9d8bb490da583e6df123a3631c6ff2b39fcc0ad3 100644 (file)
@@ -43,8 +43,8 @@ char *device_info;
 extern char *identname;
 extern bool running;
 
-int device_total_in = 0;
-int device_total_out = 0;
+static int device_total_in = 0;
+static int device_total_out = 0;
 
 enum request_type { REQ_NEW_CONTROL };