~mdw
/
tripe
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Various minor cleanups.
[tripe]
/
server
/
tun-unet.c
diff --git
a/server/tun-unet.c
b/server/tun-unet.c
index
3274db1
..
2d11ca0
100644
(file)
--- a/
server/tun-unet.c
+++ b/
server/tun-unet.c
@@
-1,7
+1,5
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id$
- *
* Tunnel interface based on Linux Usernet
*
* (c) 2001 Straylight/Edgeware
* 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);
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'",
}
*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)
*/
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",
const tunnel_ops tun_unet = {
"unet",