diff options
author | eadler <eadler@FreeBSD.org> | 2013-03-04 02:21:26 +0000 |
---|---|---|
committer | eadler <eadler@FreeBSD.org> | 2013-03-04 02:21:26 +0000 |
commit | d359c8655e620cafcc9a7fc6df00c221b1385eae (patch) | |
tree | 437bfd0d4de6ba9fd5d78fd04b950abfc72f7b5b /sbin/devd | |
parent | d75b737f5421f03e2b10d5b1db967516425c60c1 (diff) | |
download | FreeBSD-src-d359c8655e620cafcc9a7fc6df00c221b1385eae.zip FreeBSD-src-d359c8655e620cafcc9a7fc6df00c221b1385eae.tar.gz |
devd: Use string::empty() instea of string::length() == 0.
Submitted by: Christoph Mallon <christoph.mallon@gmx.de>
Approved by: cperciva (mentor)
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 16f9256..b52bf22 100644 --- a/sbin/devd/devd.cc +++ b/sbin/devd/devd.cc @@ -319,7 +319,7 @@ media::do_match(config &c) // the name of interest, first try device-name and fall back // to subsystem if none exists. value = c.get_variable("device-name"); - if (value.length() == 0) + if (value.empty()) value = c.get_variable("subsystem"); if (Dflag) fprintf(stderr, "Testing media type of %s against 0x%x\n", |