X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fuml_socket%2Fdevice.c;h=f81c88f63923840fb22b052081334fbd5f3c2c88;hp=528a66f05dafed7813d342cf913b8d14201154be;hb=b069da90d67b49dce041f513a3855b8da3d82f80;hpb=7717cb0c54cc1b736b9f210b180c3cb3f4663ded diff --git a/src/uml_socket/device.c b/src/uml_socket/device.c index 528a66f0..f81c88f6 100644 --- a/src/uml_socket/device.c +++ b/src/uml_socket/device.c @@ -1,7 +1,7 @@ /* device.c -- UML network socket - Copyright (C) 2002-2004 Ivo Timmermans , - 2002-2004 Guus Sliepen + Copyright (C) 2002-2005 Ivo Timmermans, + 2002-2006 Guus Sliepen This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -36,15 +36,15 @@ static int request_fd = -1; static int data_fd = -1; static int write_fd = -1; static int state = 0; -char *device; +char *device = NULL; char *iface = NULL; -char *device_info; +static 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 };