summaryrefslogtreecommitdiffstats
path: root/sys/boot
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2017-03-31 04:43:25 +0000
committerngie <ngie@FreeBSD.org>2017-03-31 04:43:25 +0000
commite255c379c3214f05d71a8c0376150bbf43b8358a (patch)
treea7ecba78c728618453d7f4959d9d2f200648b4d1 /sys/boot
parent788b91c13afa67207b7f647ae5e811ced51cb9e7 (diff)
downloadFreeBSD-src-e255c379c3214f05d71a8c0376150bbf43b8358a.zip
FreeBSD-src-e255c379c3214f05d71a8c0376150bbf43b8358a.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