~mdw
/
tripe
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
server/admin.c: Remove spurious `ping' in usage message.
[tripe]
/
server
/
tun-slip.c
diff --git
a/server/tun-slip.c
b/server/tun-slip.c
index
1c45295
..
29f42d5
100644
(file)
--- a/
server/tun-slip.c
+++ b/
server/tun-slip.c
@@
-179,13
+179,13
@@
static void t_read(int fd, unsigned mode, void *v)
*
* Arguments: ---
*
*
* Arguments: ---
*
- * Returns:
---
+ * Returns:
Zero on success, @-1@ on failure.
*
* Use: Initializes the tunneling system. Maybe this will require
* opening file descriptors or something.
*/
*
* Use: Initializes the tunneling system. Maybe this will require
* opening file descriptors or something.
*/
-static
void
t_init(void)
+static
int
t_init(void)
{
char *p, *q;
dstr d = DSTR_INIT;
{
char *p, *q;
dstr d = DSTR_INIT;
@@
-194,7
+194,7
@@
static void t_init(void)
size_t n;
if ((p = getenv("TRIPE_SLIPIF")) == 0)
size_t n;
if ((p = getenv("TRIPE_SLIPIF")) == 0)
- return;
+ return
(0)
;
/* --- Build the list of available interfaces --- */
/* --- Build the list of available interfaces --- */
@@
-240,10
+240,11
@@
static void t_init(void)
break;
p++;
}
break;
p++;
}
- return;
+ return
(0)
;
whine:
whine:
- moan("bad slip interface list");
+ a_warn("TUN", "-", "slip", "bad-interface-list", A_END);
+ return (-1);
}
/* --- @t_broken@ --- *
}
/* --- @t_broken@ --- *