$OpenBSD: patch-apps_kinfocenter_base_info_openbsd_cpp,v 1.1 2010/06/19 08:59:06 espie Exp $
--- apps/kinfocenter/base/info_openbsd.cpp.orig	Sat Jun 19 10:22:37 2010
+++ apps/kinfocenter/base/info_openbsd.cpp	Sat Jun 19 10:26:25 2010
@@ -38,7 +38,7 @@ typedef struct {
 
 bool GetInfo_CPU(QTreeWidget* tree) {
 	static const hw_info_mib_list_t hw_info_mib_list[]= { { 1, HW_MODEL, "Model" }, { 1, HW_MACHINE, "Machine" }, { 0, HW_NCPU, "Number of CPUs" }, { 0, HW_PAGESIZE, "Pagesize" }, { 0, 0, 0 } };
-	hw_info_mib_list_t *hw_info_mib;
+	const hw_info_mib_list_t *hw_info_mib;
 
 	int mib[2], num;
 	char *buf;
@@ -156,7 +156,7 @@ void AddIRQLine(QTreeWidget* tree, QString s, void **o
 		return;
 	}
 
-	pos = s.find(" irq ");
+	pos = s.indexOf(" irq ");
 	irqnum = (pos < 0) ? 0 : atoi(&p[pos+5]);
 	if (irqnum) {
 		s.sprintf("%02d%s", irqnum, p);
@@ -215,7 +215,7 @@ bool GetInfo_Sound(QTreeWidget* tree) {
 		char *dev;
 
 		s = lvitem->text(0);
-		if ((pos = s.find("at ")) >= 0) {
+		if ((pos = s.indexOf("at ")) >= 0) {
 			pos += 3; // skip "at "
 			start = end = s.toAscii();
 			for (; *end && (*end!=':') && (*end!='\n'); end++)
