summaryrefslogtreecommitdiffstats
path: root/usr.bin/dtc/dtc.cc
diff options
context:
space:
mode:
authortheraven <theraven@FreeBSD.org>2013-01-22 18:12:31 +0000
committertheraven <theraven@FreeBSD.org>2013-01-22 18:12:31 +0000
commit62ccfde083ad68e21b73038749618e4a52342d71 (patch)
tree2e2196d0dc42c931b4602a19c37e6ae9c81a2f29 /usr.bin/dtc/dtc.cc
parent9f101aeb57abe7bf47cd58141dcaa1bb1fb1a56a (diff)
downloadFreeBSD-src-62ccfde083ad68e21b73038749618e4a52342d71.zip
FreeBSD-src-62ccfde083ad68e21b73038749618e4a52342d71.tar.gz
Fix logic error in explicitly specified dtb versions spotted by gavin.
Diffstat (limited to 'usr.bin/dtc/dtc.cc')
-rw-r--r--usr.bin/dtc/dtc.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/dtc/dtc.cc b/usr.bin/dtc/dtc.cc
index 6d1966f..bf52813 100644
--- a/usr.bin/dtc/dtc.cc
+++ b/usr.bin/dtc/dtc.cc
@@ -164,7 +164,7 @@ main(int argc, char **argv)
debug_mode = true;
break;
case 'V':
- if (string(optarg) == string("17"))
+ if (string(optarg) != string("17"))
{
fprintf(stderr, "Unknown output format version: %s\n", optarg);
return EXIT_FAILURE;
OpenPOWER on IntegriCloud