Hi,
accidently uncommented the wrong DEBUG.
Fixed patch attached.
Kind regards
Nico

-- 
Nico Golde - http://www.ngolde.de
JAB: [EMAIL PROTECTED] - GPG: 0x73647CFF
Forget about that mouse with 3/4/5 buttons,
gimme a keyboard with 103/104/105 keys!
--- cheops-ng-0.2.3/probe.c	2005-10-17 22:49:42.000000000 +0200
+++ probe.c	2007-02-17 14:27:22.000000000 +0100
@@ -92,13 +92,13 @@
 
 void get_probe_each(gpointer data, gpointer user_data)
 {
-	u32 *args = (u32 *)user_data;
-	u32 port = args[0];
+	u64 *args = (u64 *)user_data;
+	u64 port = args[0];
 	struct probe *p = (struct probe *)data;
 	struct probe **pp = (struct probe **)args[1];
 	
 //	DEBUG(printf("%s()\n", __FUNCTION__));
-	if(*pp == NULL)
+	if(pp && *pp == NULL)
 	{
 		if( p->port == (u16)port)
 			*pp = p;
@@ -107,12 +107,12 @@
 
 struct probe *get_probe(unsigned short port)
 {
-	u32 args[2];
+	u64 args[2];
 	struct probe *p = NULL;
 	
 	DEBUG(printf("%s()\n", __FUNCTION__));
 	args[0] = port;
-	args[1] = (u32)&p;
+	args[1] = (u64)&p;
 	
 	g_list_foreach(probes, get_probe_each, args);
 	

Attachment: pgphwJPQXsvvu.pgp
Description: PGP signature

Reply via email to