Author: eadler
Date: Mon Mar  4 02:21:26 2013
New Revision: 247761
URL: http://svnweb.freebsd.org/changeset/base/247761

Log:
  devd: Use string::empty() instea of string::length() == 0.
  
  Submitted by: Christoph Mallon <christoph.mal...@gmx.de>
  Approved by:  cperciva (mentor)

Modified:
  head/sbin/devd/devd.cc

Modified: head/sbin/devd/devd.cc
==============================================================================
--- head/sbin/devd/devd.cc      Mon Mar  4 02:21:24 2013        (r247760)
+++ head/sbin/devd/devd.cc      Mon Mar  4 02:21:26 2013        (r247761)
@@ -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",
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to