summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sesutil
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2015-09-05 16:59:30 +0000
committerbapt <bapt@FreeBSD.org>2015-09-05 16:59:30 +0000
commit791763d67eb51025beffc834681487f187ffc283 (patch)
tree017694324ea84083dffeeaf5192f44532cffce34 /usr.sbin/sesutil
parente31cc5ffc6460ac450f2c8017a578280c86549b9 (diff)
downloadFreeBSD-src-791763d67eb51025beffc834681487f187ffc283.zip
FreeBSD-src-791763d67eb51025beffc834681487f187ffc283.tar.gz
Fix build with gcc 4.2
Reported by: kib
Diffstat (limited to 'usr.sbin/sesutil')
-rw-r--r--usr.sbin/sesutil/sesutil.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/sesutil/sesutil.c b/usr.sbin/sesutil/sesutil.c
index 2cbc56a..ca510ff 100644
--- a/usr.sbin/sesutil/sesutil.c
+++ b/usr.sbin/sesutil/sesutil.c
@@ -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;
}
}
OpenPOWER on IntegriCloud