Date: Fri, 31 Mar 2017 04:43:21 +0000 (UTC) From: Ngie Cooper <ngie@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r316318 - stable/11/sys/boot/common Message-ID: <201703310443.v2V4hLFW056493@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ngie Date: Fri Mar 31 04:43:21 2017 New Revision: 316318 URL: https://svnweb.freebsd.org/changeset/base/316318 Log: MFC r316108: Remove -Wunused-but-set variable, `tail` in `ls_getdir(..)` This variable has been unused since its inception in r40106. Modified: stable/11/sys/boot/common/ls.c Directory Properties: stable/11/ (props changed) Modified: stable/11/sys/boot/common/ls.c ============================================================================== --- stable/11/sys/boot/common/ls.c Fri Mar 31 04:42:11 2017 (r316317) +++ stable/11/sys/boot/common/ls.c Fri Mar 31 04:43:21 2017 (r316318) @@ -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 */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201703310443.v2V4hLFW056493>