Various minor cleanups.
[tripe] / server / tun-unet.c
index 3274db1..2d11ca0 100644 (file)
@@ -1,7 +1,5 @@
 /* -*-c-*-
  *
- * $Id$
- *
  * Tunnel interface based on Linux Usernet
  *
  * (c) 2001 Straylight/Edgeware
@@ -127,7 +125,7 @@ static tunnel *t_create(peer *p, char **ifn)
 
   if (ioctl(t->f.fd, UNIOCGINFO, &uni)) {
     a_warn("TUN", "-", "unet", "getinfo-error", "?ERRNO", A_END);
-    return ("<error>");
+    return (0);
   }
   *ifn = xstrdup(uni.uni_ifname);
   T( trace(T_TUNNEL, "tun-unet: attached interface %s to peer `%s'",
@@ -164,11 +162,7 @@ static void t_inject(tunnel *t, buf *b)
  */
 
 static void t_destroy(tunnel *t)
-{
-  sel_rmfile(&t->f);
-  close(t->f.fd);
-  DESTROY(t);
-}
+  { sel_rmfile(&t->f); close(t->f.fd); DESTROY(t); }
 
 const tunnel_ops tun_unet = {
   "unet",