[pisa-src] r1669 - trunk/libpisa/tunnel.c

  • From: Thomas Jansen <mithi@xxxxxxxxx>
  • To: pisa-src@xxxxxxxxxxxxx
  • Date: Thu, 12 Nov 2009 14:38:29 +0100

Author: tjansen
Date: Thu Nov 12 14:38:29 2009
New Revision: 1669

Log:
Removed unnecessary variable initializations.

Modified:
   trunk/libpisa/tunnel.c

Modified: trunk/libpisa/tunnel.c
==============================================================================
--- trunk/libpisa/tunnel.c      Thu Nov 12 14:35:39 2009        (r1668)
+++ trunk/libpisa/tunnel.c      Thu Nov 12 14:38:29 2009        (r1669)
@@ -31,7 +31,7 @@
  */
 int pisa_tunnel_open_tundev(char* devname, size_t len)
 {
-       int fd_tun = -1;
+       int fd_tun;
        struct ifreq ifr;
 
        if ((fd_tun = open("/dev/net/tun", O_RDWR)) < 0)
@@ -132,9 +132,8 @@
  */
 int pisa_tunnel_open_socket(int port)
 {
-       int fd_peer = -1;
+       int fd_peer, on = 1;
        struct sockaddr_in6 sin;
-       int on = 1;
 
        fd_peer = socket(AF_INET6, SOCK_DGRAM, 0);
 

Other related posts:

  • » [pisa-src] r1669 - trunk/libpisa/tunnel.c - Thomas Jansen