svn commit: r247761 - head/sbin/devd

Eitan Adler eadler at FreeBSD.org
Mon Mar 4 02:21:29 UTC 2013


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.mallon at 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",


More information about the svn-src-all mailing list