summaryrefslogtreecommitdiffstats
path: root/patches/lshw-B.02.14/0003-fix-compiling-with-g-4.5.patch
blob: 903b87dd55384d37095e787b7eb193c0136f4fee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From: unknown author <unknown.author@example.com>
Date: Mon, 23 Aug 2010 10:45:58 +0200
Subject: [PATCH] fix compiling with g++ 4.5

g++ 4.5 is stricter and won't compile without this patch.

Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
---
 src/core/scsi.cc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/core/scsi.cc b/src/core/scsi.cc
index ef49677..e72376b 100644
--- a/src/core/scsi.cc
+++ b/src/core/scsi.cc
@@ -842,7 +842,7 @@ static bool scan_hosts(hwNode & node)
 
           if (!controller)
           {
-            controller = node.addChild(hwNode::hwNode("scsi", hw::storage));
+            controller = node.addChild(hwNode("scsi", hw::storage));
             if (controller)
             {
               controller->setLogicalName(host_logicalname(number));
-- 
1.7.1