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 2818cd2..e96ef1d 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 c3f3c0b..691a408 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 43dbb92..2d9a0eb 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 74e3947..4299a93 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 2d2b925..0206326 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 43628e7..53198e4 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 aa0150a..92c3c03 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 0de3fd6..188cb2e 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 89b5f79..4bd88d7 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 528a66f..9d8bb49 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 };