tangled
alpha
login
or
join now
jcs.org
/
openbsd-src
0
fork
atom
jcs's openbsd hax
openbsd
0
fork
atom
overview
issues
pulls
pipelines
Remove unused variables to silence clang.
ok kettenis@
patrick
4 years ago
abae8ea6
6ed3e12b
+3
-7
2 changed files
expand all
collapse all
unified
split
sys
lib
libsa
netif.c
tftp.c
+2
-3
sys/lib/libsa/netif.c
reviewed
···
1
1
-
/* $OpenBSD: netif.c,v 1.12 2017/09/08 05:36:53 deraadt Exp $ */
1
1
+
/* $OpenBSD: netif.c,v 1.13 2021/10/25 15:59:46 patrick Exp $ */
2
2
/* $NetBSD: netif.c,v 1.7 1996/10/13 02:29:03 christos Exp $ */
3
3
4
4
/*
···
85
85
struct netif *
86
86
netif_select(void *machdep_hint)
87
87
{
88
88
-
int d, u, unit_done, s;
88
88
+
int d, u, s;
89
89
struct netif_driver *drv;
90
90
struct netif cur_if;
91
91
static struct netif best_if;
···
106
106
107
107
for (u = 0; u < drv->netif_nifs; u++) {
108
108
cur_if.nif_unit = u;
109
109
-
unit_done = 0;
110
109
111
110
#ifdef NETIF_DEBUG
112
111
if (netif_debug)
+1
-4
sys/lib/libsa/tftp.c
reviewed
···
1
1
-
/* $OpenBSD: tftp.c,v 1.6 2014/07/13 15:31:20 mpi Exp $ */
1
1
+
/* $OpenBSD: tftp.c,v 1.7 2021/10/25 15:59:46 patrick Exp $ */
2
2
/* $NetBSD: tftp.c,v 1.15 2003/08/18 15:45:29 dsl Exp $ */
3
3
4
4
/*
···
383
383
int
384
384
tftp_stat(struct open_file *f, struct stat *sb)
385
385
{
386
386
-
struct tftp_handle *tftpfile;
387
387
-
tftpfile = (struct tftp_handle *) f->f_fsdata;
388
388
-
389
386
sb->st_mode = 0444;
390
387
sb->st_nlink = 1;
391
388
sb->st_uid = 0;