summaryrefslogtreecommitdiffstats
path: root/sys/boot
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2017-03-31 04:43:21 +0000
committerngie <ngie@FreeBSD.org>2017-03-31 04:43:21 +0000
commit8226952ad136a1d3ffbd8445f6cc705821f741cb (patch)
treeff0a0c81ab9016cc036df35a17196e7ade6180fb /sys/boot
parent257df05444445fd3d60f536dc867e13b93d85587 (diff)
downloadFreeBSD-src-8226952ad136a1d3ffbd8445f6cc705821f741cb.zip
FreeBSD-src-8226952ad136a1d3ffbd8445f6cc705821f741cb.tar.gz
MFC r316108:
Remove -Wunused-but-set variable, `tail` in `ls_getdir(..)` This variable has been unused since its inception in r40106.
Diffstat (limited to 'sys/boot')
-rw-r--r--sys/boot/common/ls.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/boot/common/ls.c b/sys/boot/common/ls.c
index 86f83c3..50fab4a 100644
--- a/sys/boot/common/ls.c
+++ b/sys/boot/common/ls.c
@@ -139,9 +139,8 @@ ls_getdir(char **pathp)
struct stat sb;
int fd;
const char *cp;
- char *path, *tail;
+ char *path;
- tail = NULL;
fd = -1;
/* one extra byte for a possible trailing slash required */
OpenPOWER on IntegriCloud