svn commit: r287485 - head/usr.sbin/sesutil

Baptiste Daroussin bapt at FreeBSD.org
Sat Sep 5 16:59:31 UTC 2015


Author: bapt
Date: Sat Sep  5 16:59:30 2015
New Revision: 287485
URL: https://svnweb.freebsd.org/changeset/base/287485

Log:
  Fix build with gcc 4.2
  
  Reported by:	kib

Modified:
  head/usr.sbin/sesutil/sesutil.c

Modified: head/usr.sbin/sesutil/sesutil.c
==============================================================================
--- head/usr.sbin/sesutil/sesutil.c	Sat Sep  5 14:14:03 2015	(r287484)
+++ head/usr.sbin/sesutil/sesutil.c	Sat Sep  5 16:59:30 2015	(r287485)
@@ -104,7 +104,7 @@ locate(int argc, char **argv)
 	size_t len, i;
 	int fd, nobj, j;
 	bool all = false;
-	bool locate;
+	bool onoff;
 
 	if (argc != 2) {
 		errx(EXIT_FAILURE, "usage: %s locate [disk] [on|off]",
@@ -114,9 +114,9 @@ locate(int argc, char **argv)
 	disk = argv[0];
 
 	if (strcmp(argv[1], "on") == 0) {
-		locate = true;
+		onoff = true;
 	} else if (strcmp(argv[1], "off") == 0) {
-		locate = false;
+		onoff = false;
 	} else {
 		errx(EXIT_FAILURE, "usage: %s locate [disk] [on|off]",
 		    getprogname());
@@ -165,11 +165,11 @@ locate(int argc, char **argv)
 				continue;
 			if (objdn.elm_names_len > 0) {
 				if (all) {
-					do_locate(fd, objdn.elm_idx, locate);
+					do_locate(fd, objdn.elm_idx, onoff);
 					continue;
 				}
 				if (disk_match(objdn.elm_devnames, disk, len)) {
-					do_locate(fd, objdn.elm_idx, locate);
+					do_locate(fd, objdn.elm_idx, onoff);
 					break;
 				}
 			}


More information about the svn-src-all mailing list