File kadslwatch-01.00.06-gcc4.diff of Package kadslwatch

--- kadslwatch-01.00.06/src/ccapiinfo.cpp.orig	2004-12-13 15:39:21.000000000 +0100
+++ kadslwatch-01.00.06/src/ccapiinfo.cpp	2006-01-09 23:16:03.620404272 +0100
@@ -260,9 +260,11 @@
 
             case CapiNoError:							// register this app.
             		{
-          					m_nLastError = capi20_register (1, 2, 2048, (unsigned int*)&m_wApplId);
+						unsigned int aid;
+          					m_nLastError = capi20_register (1, 2, 128, &aid);
           					if ( m_nLastError == CapiNoError )
           					{
+								m_wApplId = aid & 0xffff;
 #ifdef CPROT				
           							CAPI_PROTOCOL_TEXT ("\ncapi20_register ()  ApplID=%u\n", m_wApplId);
 #endif						
openSUSE Build Service is sponsored by