summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2015-09-05 22:33:40 +0000
committerbapt <bapt@FreeBSD.org>2015-09-05 22:33:40 +0000
commit1933476d250f8f9e04a3d94856ac187434118315 (patch)
tree9eddad08dc99bffa9ce8a6840d45a0e29ea876c9
parent9dfaf9b47b49e8885be5f3437d511f319b31c820 (diff)
downloadFreeBSD-src-1933476d250f8f9e04a3d94856ac187434118315.zip
FreeBSD-src-1933476d250f8f9e04a3d94856ac187434118315.tar.gz
Yet another fix for gcc 4.2
-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 28ba7bb..1b38143 100644
--- a/usr.sbin/sesutil/sesutil.c
+++ b/usr.sbin/sesutil/sesutil.c
@@ -83,13 +83,13 @@ do_locate(int fd, unsigned int idx, bool onoff)
static bool
disk_match(const char *devnames, const char *disk, size_t len)
{
- const char *devname;
+ const char *dname;
- devname = devnames;
- while ((devname = strstr(devname, disk)) != NULL) {
- if (devname[len] == '\0' || devname[len] == ',')
+ dname = devnames;
+ while ((dname = strstr(dname, disk)) != NULL) {
+ if (dname[len] == '\0' || dname[len] == ',')
return (true);
- devname++;
+ dname++;
}
return (false);
}
OpenPOWER on IntegriCloud