From abae8ea6e7c2feb8d3a73d157c465584f09ffdfd Mon Sep 17 00:00:00 2001 From: patrick Date: Mon, 25 Oct 2021 15:59:46 +0000 Subject: [PATCH] Remove unused variables to silence clang. ok kettenis@ --- sys/lib/libsa/netif.c | 5 ++--- sys/lib/libsa/tftp.c | 5 +---- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/sys/lib/libsa/netif.c b/sys/lib/libsa/netif.c index d1a5e180291..bad2971c692 100644 --- a/sys/lib/libsa/netif.c +++ b/sys/lib/libsa/netif.c @@ -1,4 +1,4 @@ -/* $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 $ */ /* @@ -85,7 +85,7 @@ netif_match(struct netif *nif, void *machdep_hint) 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; @@ -106,7 +106,6 @@ netif_select(void *machdep_hint) for (u = 0; u < drv->netif_nifs; u++) { cur_if.nif_unit = u; - unit_done = 0; #ifdef NETIF_DEBUG if (netif_debug) diff --git a/sys/lib/libsa/tftp.c b/sys/lib/libsa/tftp.c index 3eea8bbe66e..0e87090b09a 100644 --- a/sys/lib/libsa/tftp.c +++ b/sys/lib/libsa/tftp.c @@ -1,4 +1,4 @@ -/* $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 $ */ /* @@ -383,9 +383,6 @@ tftp_write(struct open_file *f, void *start, size_t size, size_t *resid) 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; -- 2.20.1