File kisdnwatch-01.00.10-gcc4.diff of Package kisdnwatch

--- kisdnwatch-01.00.10/src/ccapiinfo.cpp~	2006-01-09 23:04:13.783321440 +0100
+++ kisdnwatch-01.00.10/src/ccapiinfo.cpp	2006-01-09 23:04:13.796319172 +0100
@@ -260,9 +260,11 @@
 
             case CapiNoError:							// register this app.
             		{
-          					m_nLastError = capi20_register (1, 2, 128, (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