diff options
author | imp <imp@FreeBSD.org> | 2005-10-19 18:10:34 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2005-10-19 18:10:34 +0000 |
commit | 32a93330de5f1f44e51cb5b729b609573cbc7cbf (patch) | |
tree | d231616cb54d6b87efdae582e669e1fe8230316a /sbin/devd | |
parent | 69d53f996712bcf25b15d22d498614a1d971b355 (diff) | |
download | FreeBSD-src-32a93330de5f1f44e51cb5b729b609573cbc7cbf.zip FreeBSD-src-32a93330de5f1f44e51cb5b729b609573cbc7cbf.tar.gz |
As pointed out on current@, we don't want to declare a variable in a scope
that just uses the variable and throws it away.
This should fix the subsystem keyword wrt media-type.
MFC After: 2 days
Diffstat (limited to 'sbin/devd')
-rw-r--r-- | sbin/devd/devd.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/devd/devd.cc b/sbin/devd/devd.cc index c5d009f..c9f6a86 100644 --- a/sbin/devd/devd.cc +++ b/sbin/devd/devd.cc @@ -233,7 +233,7 @@ media::do_match(config &c) // to subsystem if none exists. value = c.get_variable("device-name"); if (value.length() == 0) - string value = c.get_variable("subsystem"); + value = c.get_variable("subsystem"); if (Dflag) fprintf(stderr, "Testing media type of %s against 0x%x\n", value.c_str(), _type); |