Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Mar 2017 04:43:25 +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-10@freebsd.org
Subject:   svn commit: r316319 - stable/10/sys/boot/common
Message-ID:  <201703310443.v2V4hPIu056542@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ngie
Date: Fri Mar 31 04:43:25 2017
New Revision: 316319
URL: https://svnweb.freebsd.org/changeset/base/316319

Log:
  MFC r316108:
  
  Remove -Wunused-but-set variable, `tail` in `ls_getdir(..)`
  
  This variable has been unused since its inception in r40106.

Modified:
  stable/10/sys/boot/common/ls.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/boot/common/ls.c
==============================================================================
--- stable/10/sys/boot/common/ls.c	Fri Mar 31 04:43:21 2017	(r316318)
+++ stable/10/sys/boot/common/ls.c	Fri Mar 31 04:43:25 2017	(r316319)
@@ -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.v2V4hPIu056542>