*
* Arguments: ---
*
- * Returns: ---
+ * Returns: Zero on success, @-1@ on failure.
*
* 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;
size_t n;
if ((p = getenv("TRIPE_SLIPIF")) == 0)
- return;
+ return (0);
/* --- Build the list of available interfaces --- */
break;
p++;
}
- return;
+ return (0);
whine:
a_warn("TUN", "-", "slip", "bad-interface-list", A_END);
+ return (-1);
}
/* --- @t_broken@ --- *