svn commit: r316318 - stable/11/sys/boot/common

Ngie Cooper ngie at FreeBSD.org
Fri Mar 31 04:43:22 UTC 2017


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 */


More information about the svn-src-all mailing list