-/* $OpenBSD: netif.c,v 1.12 2017/09/08 05:36:53 deraadt Exp $ */
+/* $OpenBSD: netif.c,v 1.13 2021/10/25 15:59:46 patrick Exp $ */
/* $NetBSD: netif.c,v 1.7 1996/10/13 02:29:03 christos Exp $ */
/*
struct netif *
netif_select(void *machdep_hint)
{
- int d, u, unit_done, s;
+ int d, u, s;
struct netif_driver *drv;
struct netif cur_if;
static struct netif best_if;
for (u = 0; u < drv->netif_nifs; u++) {
cur_if.nif_unit = u;
- unit_done = 0;
#ifdef NETIF_DEBUG
if (netif_debug)
-/* $OpenBSD: tftp.c,v 1.6 2014/07/13 15:31:20 mpi Exp $ */
+/* $OpenBSD: tftp.c,v 1.7 2021/10/25 15:59:46 patrick Exp $ */
/* $NetBSD: tftp.c,v 1.15 2003/08/18 15:45:29 dsl Exp $ */
/*
int
tftp_stat(struct open_file *f, struct stat *sb)
{
- struct tftp_handle *tftpfile;
- tftpfile = (struct tftp_handle *) f->f_fsdata;
-
sb->st_mode = 0444;
sb->st_nlink = 1;
sb->st_uid = 0;