diff options
author | bapt <bapt@FreeBSD.org> | 2015-09-05 22:33:40 +0000 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2015-09-05 22:33:40 +0000 |
commit | 1933476d250f8f9e04a3d94856ac187434118315 (patch) | |
tree | 9eddad08dc99bffa9ce8a6840d45a0e29ea876c9 | |
parent | 9dfaf9b47b49e8885be5f3437d511f319b31c820 (diff) | |
download | FreeBSD-src-1933476d250f8f9e04a3d94856ac187434118315.zip FreeBSD-src-1933476d250f8f9e04a3d94856ac187434118315.tar.gz |
Yet another fix for gcc 4.2
-rw-r--r-- | usr.sbin/sesutil/sesutil.c | 10 |
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); } |