[pisa-src] r2271 - trunk/libpisa/sysdep_tun.c

  • From: Diego Biurrun <diego@xxxxxxxxxx>
  • To: pisa-src@xxxxxxxxxxxxx
  • Date: Thu, 15 Apr 2010 11:49:36 +0200

Author: biurrun
Date: Thu Apr 15 11:49:36 2010
New Revision: 2271

Log:
cosmetics: Rename fd variable to fd_tun.
This creates consistency across pisa_tunnel_open_tundev implementations.

Modified:
   trunk/libpisa/sysdep_tun.c

Modified: trunk/libpisa/sysdep_tun.c
==============================================================================
--- trunk/libpisa/sysdep_tun.c  Thu Apr 15 11:40:34 2010        (r2270)
+++ trunk/libpisa/sysdep_tun.c  Thu Apr 15 11:49:36 2010        (r2271)
@@ -57,14 +57,14 @@
 
     return fd_tun;
 #else
-    int i, fd;
+    int i, fd_tun;
     char name[32];
 
     for (i = 0; i < 255; i++) {
         snprintf(name, sizeof(name), "/dev/tun%d", i);
-        if ((fd = open(name, O_RDWR)) > 0) {
+        if ((fd_tun = open(name, O_RDWR)) > 0) {
             snprintf(devicename, len, "tun%d", i);
-            return fd;
+            return fd_tun;
         }
     }
 

Other related posts:

  • » [pisa-src] r2271 - trunk/libpisa/sysdep_tun.c - Diego Biurrun