Index: dcopc.c
===================================================================
RCS file: /home/kde/kdebindings/dcopc/dcopc.c,v
retrieving revision 1.10
diff -u -r1.10 dcopc.c
--- dcopc.c	26 Sep 2002 21:02:37 -0000	1.10
+++ dcopc.c	20 Apr 2003 11:35:09 -0000
@@ -156,10 +156,11 @@
       sizeof(DcopClientClass),
       (GtkClassInitFunc)dcop_client_class_init,
       (GtkObjectInitFunc)dcop_client_init,
-      0,
-      0,
-      0
+      NULL,
+      NULL,
+      NULL
     };
+    gtk_type_init();
     dcop_client_type = gtk_type_unique(GTK_TYPE_OBJECT, &dcop_client_info);
   }
   return dcop_client_type;
@@ -223,30 +224,30 @@
         dcop_client_detach( client );
 
     if ( P->post_message_timer != 0 )
-	g_source_remove( P->post_message_timer );
+    g_source_remove( P->post_message_timer );
 
     {
-	GList *it = g_list_first( P->messages );
-	while ( it )
-	{
-	    DcopClientMessage *msg = (DcopClientMessage *)it->data;
-	    dcop_data_deref( msg->data );
-	    g_free( msg );
-	    it = g_list_next( it );
-	}
-	g_list_free( P->messages );
+    GList *it = g_list_first( P->messages );
+    while ( it )
+    {
+        DcopClientMessage *msg = (DcopClientMessage *)it->data;
+        dcop_data_deref( msg->data );
+        g_free( msg );
+        it = g_list_next( it );
+    }
+    g_list_free( P->messages );
     }
 
     {
-	GList *it = g_list_first( P->transaction_list );
-	while ( it )
-	{
-	    g_free( ((DcopClientTransaction *)it->data)->sender_id );
-	    g_free( (DcopClientTransaction *)it );
-	    it = g_list_next( it );
-	}
+    GList *it = g_list_first( P->transaction_list );
+    while ( it )
+    {
+        g_free( ((DcopClientTransaction *)it->data)->sender_id );
+        g_free( (DcopClientTransaction *)it );
+        it = g_list_next( it );
+    }
 
-	g_list_free( P->transaction_list );
+    g_list_free( P->transaction_list );
     }
 
     g_free( P->app_id );
@@ -295,11 +296,13 @@
     /* we don't need any security here, as this is only a hack to
      * get the protocol number we want for DCOP.  We don't use the SM
      * connection in any way */
+    hostname = hostname; /* shutup gcc */
     return True;
 }
 
 static Status NewClientProc ( SmsConn c, SmPointer p, unsigned long*l, SmsCallbacks*cb, char**s )
 {
+    c = c; p = p; l = l; cb = cb; s = s; /* shutup gcc */
     return 0;
 }
 
@@ -321,7 +324,7 @@
 static void dcop_client_xsm_check()
 {
     if ( _IceLastMajorOpcode < 1 )
-	/* hack to enforce the correct ICE major opcode for DCOP*/
+    /* hack to enforce the correct ICE major opcode for DCOP*/
         dcop_client_registerXSM();
 }
 
@@ -390,24 +393,24 @@
             {
                 char *i;
                 char *display = getenv( "DISPLAY" );
-		gchar *display_real = g_strdup( display );
-		gchar *disppos;
-		
+        gchar *display_real = g_strdup( display );
+        gchar *disppos;
+
                 /* dcopserver per display, not per screen */
-		if ( ( disppos = strchr( display_real, '.' ) ) > strchr( display_real, ':' ) && disppos != NULL )
-		    (*disppos) = '\0';
+        if ( ( disppos = strchr( display_real, '.' ) ) > strchr( display_real, ':' ) && disppos != NULL )
+            (*disppos) = '\0';
 
                 while((i = strchr(display_real, ':')) != NULL)
                    *i = '_';
-       
+
                 fname = (gchar *)g_realloc( fname, strlen( fname ) + 1 + 1 + strlen( display_real ) );
                 strcat( fname, "_" );
                 strcat( fname, display_real );
 
-		g_free( display_real );
-                
+                g_free( display_real );
+
                 f = fopen( fname, "r" );
-   
+
                 if ( f == NULL )
                 { 
                     g_free( fname );
@@ -536,8 +539,8 @@
 gboolean dcop_client_attach( DcopClient *client )
 {
     if ( !dcop_client_attach_internal( client, TRUE ) )
-	if ( !dcop_client_attach_internal( client, TRUE ) )
-	    return FALSE; /* try two times!*/
+    if ( !dcop_client_attach_internal( client, TRUE ) )
+        return FALSE; /* try two times!*/
 
     return TRUE;
 }
@@ -618,8 +621,10 @@
 
         dcop_data_deref( reply_data );
         g_free( reply_type );
+printf("** DCOP CALL SUCCEEDED\n");
     }
 
+printf("** DEBUG: RESULT: %s\n", result);
     dcop_string_assign( P->app_id, result );
 
     P->registered = ( P->app_id != NULL && strlen( P->app_id ) > 0 );
@@ -668,15 +673,16 @@
     if ( !dcop_client_is_attached( client ) )
         return FALSE;
 
-    if ( strcmp( P->app_id, rem_app ) == 0 )
+printf("** DEBUG: dcop_client_send: %s %s\n", P->app_id, rem_app);
+    if ( ( !P->app_id ) || ( strcmp( P->app_id, rem_app ) == 0 ) )
     {
-	gchar *reply_type = 0;
-	dcop_data *reply_data = 0;
-	
-	if ( !dcop_client_receive( client, rem_app, rem_obj, rem_fun, data, &reply_type, &reply_data ) )
-	    g_warning( "dcop failure in app %s:\n    object '%s' has no function '%s'", rem_app, rem_obj, rem_fun );
-	    
-	return TRUE;
+    gchar *reply_type = 0;
+    dcop_data *reply_data = 0;
+
+    if ( !dcop_client_receive( client, rem_app, rem_obj, rem_fun, data, &reply_type, &reply_data ) )
+        g_warning( "dcop_client_send failure in app %s:\n    object '%s' has no function '%s'", rem_app, rem_obj, rem_fun );
+
+    return TRUE;
     }
 
     hdata = dcop_data_ref( dcop_data_new() );
@@ -728,10 +734,10 @@
 
     if ( !dcop_client_is_attached( client ) )
         return FALSE;
-    
+
     old_current_key = P->current_key;
     if ( !P->current_key )
-	P->current_key = P->key; /* no key, yet, initiate new call*/
+    P->current_key = P->key; /* no key, yet, initiate new call*/
 
     hdata = dcop_data_ref( dcop_data_new() );
 
@@ -757,7 +763,7 @@
     {
         dcop_data_deref( hdata );
         g_free( func );
-	P->current_key = old_current_key;
+        P->current_key = old_current_key;
         return FALSE;
     }
 
@@ -780,7 +786,7 @@
             IceCloseConnection( P->ice_conn );
             dcop_data_deref( hdata );
             g_free( func );
-	    P->current_key = old_current_key;
+            P->current_key = old_current_key;
             return FALSE;
         }
     } while ( !readyRet );
@@ -810,18 +816,18 @@
     dcop_data *reply_data = 0;
     dcop_data *data = dcop_data_ref( dcop_data_new() );
     gboolean res = FALSE;
-    
+
     dcop_marshal_string( data, app );
 
     if ( dcop_client_call( client, "DCOPServer", "", "isApplicationRegistered(QCString)", data, &reply_type, &reply_data ) )
     {
-	dcop_data_reset( reply_data );
-	dcop_demarshal_boolean( reply_data, &res );
+    dcop_data_reset( reply_data );
+    dcop_demarshal_boolean( reply_data, &res );
     }
 
     g_free( reply_type );
     if ( reply_data )
-	dcop_data_deref( reply_data );
+        dcop_data_deref( reply_data );
     dcop_data_deref( data );
 
     return res;
@@ -856,18 +862,19 @@
 
 static void dcop_client_receive_list_objects_internal( gpointer key, gpointer val, gpointer user_data )
 {
-    gchar *nam = (gchar *)key;
+    /*gchar *nam = (gchar *)key;*/
     DcopObject *obj = (DcopObject *)val;
     DcopClient *client = (DcopClient *)user_data;
     const gchar *id = DCOP_ID( obj );
-    
+    key = key; /* shutup gcc */
+
     if ( id && strlen( id ) > 0 )
     {
-	if ( P->default_object &&
-	     strcmp( id, P->default_object ) == 0 )
-	    g_temp_object_list = g_list_append( g_temp_object_list, (gchar *)"default" );
+    if ( P->default_object &&
+         strcmp( id, P->default_object ) == 0 )
+        g_temp_object_list = g_list_append( g_temp_object_list, (gchar *)"default" );
 
-	g_temp_object_list = g_list_append( g_temp_object_list, (gchar *)id );
+    g_temp_object_list = g_list_append( g_temp_object_list, (gchar *)id );
     }
 }
 
@@ -891,7 +898,7 @@
 
             if ( object_dict )
             {
-		/*
+        /*
                 GList *it = g_list_first( object_list );
 
                 while ( it )
@@ -912,12 +919,12 @@
                     }
                     it = g_list_next( it );
                 }
-		*/
-		g_temp_object_list = 0;
+        */
+        g_temp_object_list = 0;
 
-		g_hash_table_foreach( object_dict, dcop_client_receive_list_objects_internal, client );
+        g_hash_table_foreach( object_dict, dcop_client_receive_list_objects_internal, client );
 
-		list = g_temp_object_list;
+        list = g_temp_object_list;
             }
 
             dcop_marshal_stringlist( *reply_data, list );
@@ -1041,6 +1048,7 @@
                                    gchar **reply_type, dcop_data **reply_data )
 {
     /* empty default implementation*/
+    client = client; fun = fun; data = data; reply_type = reply_type; reply_data = reply_data; /* shutup gcc */
     return FALSE;
 }
 
@@ -1082,9 +1090,10 @@
     unsigned int id;
     char *called_app = 0;
     char *app = 0;
-    char *obj = 0;
-    char *fun = 0;
+    /*char *obj = 0;
+    char *fun = 0;*/
     CARD32 key;
+    swap = swap; /* shutup gcc */
 
     IceReadMessageHeader( ice_conn, sizeof( struct DCOPMsg ), struct DCOPMsg, pMsg );
 
@@ -1193,29 +1202,29 @@
     GList *it = 0;
 
     g_message( "dcop_client_process_post_messages_internal" );
-    
+
     if ( g_list_length( P->messages ) == 0 )
-	return FALSE;
+    return FALSE;
 
     it = g_list_first( P->messages );
     while ( it )
     {
-	DcopClientMessage *msg = (DcopClientMessage *)it->data;
-	it = g_list_next( it );
+    DcopClientMessage *msg = (DcopClientMessage *)it->data;
+    it = g_list_next( it );
 
-	g_assert( msg );
+    g_assert( msg );
 
-	if ( P->current_key && msg->key != P->current_key )
-	    continue;
+    if ( P->current_key && msg->key != P->current_key )
+        continue;
 
-	P->messages = g_list_remove( P->messages, msg );
-	dcop_process_internal( client, msg->opcode, msg->key, msg->data, FALSE );
-	dcop_data_deref( msg->data );
-	g_free( msg );
+    P->messages = g_list_remove( P->messages, msg );
+    dcop_process_internal( client, msg->opcode, msg->key, msg->data, FALSE );
+    dcop_data_deref( msg->data );
+    g_free( msg );
     }
 
     if ( g_list_length( P->messages ) == 0 )
-	return FALSE;
+    return FALSE;
 
     return TRUE;
 }
@@ -1243,13 +1252,13 @@
     if ( can_post && P->current_key && key != P->current_key )
     {
         DcopClientMessage *msg = g_new( DcopClientMessage, 1 );
-	g_message( "posting message with key %i", key );
+        g_message( "posting message with key %li", key );
         msg->opcode = opcode;
         msg->key = key;
         msg->data = dcop_data_ref( data_received );
         P->messages = g_list_append( P->messages, msg );
-	if ( P->post_message_timer != 0 )
-	    g_source_remove( P->post_message_timer );
+        if ( P->post_message_timer != 0 )
+            g_source_remove( P->post_message_timer );
         P->post_message_timer = g_timeout_add( 0, dcop_client_process_post_messages_internal, client );
         return;
     }
@@ -1270,7 +1279,7 @@
         g_free( app );
         g_free( obj );
         g_free( fun );
-	if ( data )
+        if ( data )
             dcop_data_deref( data );
         g_free( reply_type );
         if ( reply_data )
@@ -1284,24 +1293,24 @@
 
     if ( P->transaction_id )
     {
-	dcop_marshal_string( reply, P->app_id );
-	dcop_marshal_string( reply, P->sender_id );
-	dcop_marshal_uint32( reply, (guint32)P->transaction_id );
-
-	IceGetHeader( P->ice_conn, P->major_opcode, DCOPReplyWait,	
-		      sizeof( struct DCOPMsg ), struct DCOPMsg, pMsg );
-
-	pMsg->key = key;
-	pMsg->length += reply->size;
-	
-	IceSendData( P->ice_conn, reply->size, reply->ptr );
-	
-	dcop_data_deref( reply );
-	g_free( app );
-	g_free( obj );
-	g_free( fun );
-	dcop_data_deref( data );
-	return;
+        dcop_marshal_string( reply, P->app_id );
+        dcop_marshal_string( reply, P->sender_id );
+        dcop_marshal_uint32( reply, (guint32)P->transaction_id );
+
+        IceGetHeader( P->ice_conn, P->major_opcode, DCOPReplyWait,	
+                      sizeof( struct DCOPMsg ), struct DCOPMsg, pMsg );
+
+        pMsg->key = key;
+        pMsg->length += reply->size;
+
+        IceSendData( P->ice_conn, reply->size, reply->ptr );
+
+        dcop_data_deref( reply );
+        g_free( app );
+        g_free( obj );
+        g_free( fun );
+        dcop_data_deref( data );
+        return;
     }
 
     if ( !b )
@@ -1366,14 +1375,14 @@
     DcopClientTransaction *transaction = 0;
 
     if ( P->opcode == DCOPSend )
-	return 0;
+        return 0;
 
     P->transaction = TRUE;
     transaction = g_new( DcopClientTransaction, 1 );
     transaction->sender_id = g_strdup( P->sender_id );
 
     if ( !P->transaction_id )
-	P->transaction_id++;
+        P->transaction_id++;
 
     transaction->id = ++(P->transaction_id);
     transaction->key = P->current_key;
@@ -1386,7 +1395,7 @@
 gint32 dcop_client_transaction_id( DcopClient *client )
 {
     if ( P->transaction )
-	return P->transaction_id;
+        return P->transaction_id;
     else
 	return 0;
 }
@@ -1397,21 +1406,21 @@
     dcop_data *data = 0;
 
     if ( !trans )
-	return;
+        return;
 
     if ( !dcop_client_is_attached( client ) )
-	return;
+        return;
 
     if ( !P->transaction_list )
     {
-	g_warning( "dcop_client_end_transaction: no pending transactions!" );
-	return;
+        g_warning( "dcop_client_end_transaction: no pending transactions!" );
+        return;
     }
 
     if ( !g_list_find( P->transaction_list, trans ) )
     {
-	g_warning( "dcop_client_end_transaction: unknown transaction!" );
-	return;
+        g_warning( "dcop_client_end_transaction: unknown transaction!" );
+        return;
     }
 
     P->transaction_list = g_list_remove( P->transaction_list, trans );
@@ -1445,7 +1454,7 @@
 {
     gchar *normalized_signal_name = dcop_client_normalize_function_signature( signal );
     gchar *signame = g_strdup( object );
-    
+
     signame = (gchar *)g_realloc( signame, strlen( object ) + 1 + 1 + strlen( normalized_signal_name ) );
     strcat( signame, "#" );
     strcat( signame, normalized_signal_name );
@@ -1477,23 +1486,22 @@
     dcop_marshal_uint8( data, ivolatile );
 
     if ( dcop_client_call( client, "DCOPServer", "", "connectSignal(QCString,QCString,QCString,QCString,QCString,bool)", data, &reply_type, &reply_data ) == FALSE )
-	{
-	    g_free( normalized_signame );
-	    g_free( normalized_slotname );
-	    dcop_data_deref( data );
-	    return FALSE;
-	}
-
-    if ( reply_type == NULL || strcmp( reply_type, "bool" ) != 0 ||
-	 reply_data == NULL )
-	{
-	    g_free( normalized_signame );
-	    g_free( normalized_slotname );
-	    dcop_data_deref( data );
-	    if ( reply_data != NULL )
-		dcop_data_deref( reply_data );
-	    return FALSE;
-	}
+    {
+        g_free( normalized_signame );
+        g_free( normalized_slotname );
+        dcop_data_deref( data );
+        return FALSE;
+    }
+
+    if ( reply_type == NULL || strcmp( reply_type, "bool" ) != 0 || reply_data == NULL )
+    {
+        g_free( normalized_signame );
+        g_free( normalized_slotname );
+        dcop_data_deref( data );
+        if ( reply_data != NULL )
+            dcop_data_deref( reply_data );
+        return FALSE;
+    }
 
     dcop_data_reset( reply_data );
     dcop_demarshal_uint8( reply_data, &result );
@@ -1504,7 +1512,7 @@
     dcop_data_deref( reply_data );
 
     if ( result == 0 )
-	return FALSE;
+        return FALSE;
 
     return TRUE;
 }
@@ -1528,23 +1536,22 @@
     dcop_marshal_string( data, normalized_slotname );
 
     if ( dcop_client_call( client, "DCOPServer", "", "disconnectSignal(QCString,QCString,QCString,QCString,QCString)", data, &reply_type, &reply_data ) == FALSE )
-	{
-	    g_free( normalized_signame );
-	    g_free( normalized_slotname );
-	    dcop_data_deref( data );
-	    return FALSE;
-	}
-
-    if ( reply_type == NULL || strcmp( reply_type, "bool" ) != 0 ||
-	 reply_data == NULL )
-	{
-	    g_free( normalized_signame );
-	    g_free( normalized_slotname );
-	    dcop_data_deref( data );
-	    if ( reply_data != NULL )
-		dcop_data_deref( reply_data );
-	    return FALSE;
-	}
+    {
+        g_free( normalized_signame );
+        g_free( normalized_slotname );
+        dcop_data_deref( data );
+        return FALSE;
+    }
+
+    if ( reply_type == NULL || strcmp( reply_type, "bool" ) != 0 || reply_data == NULL )
+    {
+        g_free( normalized_signame );
+        g_free( normalized_slotname );
+        dcop_data_deref( data );
+        if ( reply_data != NULL )
+            dcop_data_deref( reply_data );
+        return FALSE;
+    }
 
     dcop_data_reset( reply_data );
     dcop_demarshal_uint8( reply_data, &result );
@@ -1555,25 +1562,25 @@
     dcop_data_deref( reply_data );
 
     if ( result == 0 )
-	return FALSE;
+        return FALSE;
 
     return TRUE;
 }
 
-void dcop_client_set_daemon_mode( DcopClient *client, gboolean daemon )
+void dcop_client_set_daemon_mode( DcopClient *client, gboolean daemonmode )
 {
     gchar *reply_type = 0;
     dcop_data *reply_data = 0;
     dcop_data *data = dcop_data_ref( dcop_data_new() );
-    guint8 idaemon = daemon ? 1 : 0;
+    guint8 idaemon = daemonmode ? 1 : 0;
     dcop_marshal_uint8( data, idaemon );
 
     dcop_client_call( client, "DCOPServer", "", "setDaemonMode(bool)", data, &reply_type, &reply_data );
 
     if ( reply_data != NULL )
-	dcop_data_deref( reply_data );
+        dcop_data_deref( reply_data );
 
     dcop_data_deref( data );
 
-    dcop_free( reply_type );    
+    dcop_free( reply_type );
 }
Index: dcopc.h
===================================================================
RCS file: /home/kde/kdebindings/dcopc/dcopc.h,v
retrieving revision 1.3
diff -u -r1.3 dcopc.h
--- dcopc.h	3 Dec 2000 00:04:43 -0000	1.3
+++ dcopc.h	20 Apr 2003 11:35:09 -0000
@@ -118,7 +118,7 @@
 
 void dcop_client_process_socket_data( DcopClient *client );
 
-const gchar *dcop_client_error_message();
+const gchar *dcop_client_error_message( void );
 
 void dcop_client_emit_dcop_signal( DcopClient *client,
                                    const gchar *object, const gchar *signal, dcop_data *data );
@@ -134,7 +134,7 @@
                                              const gchar *signal,
                                              const gchar *receiver_obj, const gchar *slot );
 
-void dcop_client_set_daemon_mode( DcopClient *client, gboolean daemon );
+void dcop_client_set_daemon_mode( DcopClient *client, gboolean daemonmode );
 
 #ifdef __cplusplus
 }
Index: dcopobject.c
===================================================================
RCS file: /home/kde/kdebindings/dcopc/dcopobject.c,v
retrieving revision 1.2
diff -u -r1.2 dcopobject.c
--- dcopobject.c	23 Jan 2002 09:54:45 -0000	1.2
+++ dcopobject.c	20 Apr 2003 11:35:10 -0000
@@ -109,9 +109,9 @@
 
     /* register a unique id*/
     {
-	gchar n[1024];
-	g_snprintf( n, sizeof( n ), "%p", obj );
-	dcop_object_set_id( obj, n ); /* also registers the object at the object_dict*/
+    gchar n[1024];
+    g_snprintf( n, sizeof( n ), "%p", (void *)obj );
+    dcop_object_set_id( obj, n ); /* also registers the object at the object_dict*/
     }
 
     g_message( "dcop_object_init(DcopObject *obj)\n");
@@ -133,13 +133,13 @@
 
     g_assert( object_dict );
     g_assert( d->id );
-    
+
     g_hash_table_remove( object_dict, d->id );
 
     if ( g_hash_table_size( object_dict ) == 0 )
     {
-	g_hash_table_destroy( object_dict );
-	object_dict = 0;
+    g_hash_table_destroy( object_dict );
+    object_dict = 0;
     }
 
     g_free(d->id);
@@ -155,10 +155,10 @@
     DcopObjectPrivate *d = (DcopObjectPrivate *) obj->data;
 
     if ( !object_dict )
-	object_dict = g_hash_table_new( g_str_hash, g_str_equal );
+    object_dict = g_hash_table_new( g_str_hash, g_str_equal );
 
     if ( d->id )
-	g_hash_table_remove( object_dict, d->id );
+    g_hash_table_remove( object_dict, d->id );
 
     dcop_string_copy( d->id, id );
 
@@ -219,6 +219,7 @@
                                            gchar **reply_type, dcop_data **reply_data )
 {
     /* empty default implementation*/
+    client = client; fun = fun; data = data; reply_type = reply_type; reply_data = reply_data; /* shutup gcc */
     return FALSE;
 }
 
@@ -235,6 +236,7 @@
 GList *dcop_object_real_functions( DcopObject *client )
 {
     GList *res = 0;
+    client = client;
     res = g_list_append( res, g_strdup( "QCStringList interfaces()" ) );
     res = g_list_append( res, g_strdup( "QCStringList functions()" ) );
     return res;
@@ -243,16 +245,17 @@
 GList *dcop_object_real_interfaces( DcopObject *client )
 {
     GList *res = 0;
+    client = client; /* shutup gcc */
     res = g_list_append( res, g_strdup( "DCOPObject" ) );
     return res;
 }
 
 DcopObject *dcop_object_lookup( const gchar *name )
 {
-    DcopObject *res = 0;
+    /*DcopObject *res = 0;*/
 
     if ( !object_dict || !name )
-	return NULL;
+    return NULL;
 
     return (DcopObject *)g_hash_table_lookup( object_dict, name );
 }
@@ -263,21 +266,23 @@
 static void dcop_object_match_internal( gpointer key, gpointer val, gpointer user_data )
 {
     GList **lst = (GList **)user_data;
-    gchar *nam = (gchar *)key;
+    /*gchar *nam = (gchar *)key;*/
     DcopObjectPrivate *d = ((DcopObject *)val)->data;
-    
+    key = key; /* shutup gcc */
+
     if ( strncmp( d->id, g_partial_id, g_id_len ) == 0 )
-	*lst = g_list_append( *lst, (DcopObject *)val );
+    *lst = g_list_append( *lst, (DcopObject *)val );
 }
 
 GList *dcop_object_match( const gchar *partial_id )
 {
     GList *res = 0;
-    GList *it = 0;
-    size_t id_len = strlen( partial_id );
+    /*GList *it = 0;
+    size_t id_len = strlen( partial_id );*/
+    partial_id = partial_id; /* shutup gcc */
 
     if ( !object_dict )
-	return res;
+    return res;
 
     g_hash_table_foreach( object_dict, dcop_object_match_internal, &res );
 
Index: glibtest.c
===================================================================
RCS file: /home/kde/kdebindings/dcopc/glibtest.c,v
retrieving revision 1.3
diff -u -r1.3 glibtest.c
--- glibtest.c	3 Dec 2000 00:04:43 -0000	1.3
+++ glibtest.c	20 Apr 2003 11:35:10 -0000
@@ -23,6 +23,7 @@
 #include <dcopc/dcopobject.h>
 #include <stdio.h>
 #include <glib.h>
+#include <string.h>
 
 #define C( call ) \
     if ( !call ) \
@@ -31,9 +32,16 @@
       return 1; \
     }
 
+gboolean dcop_socket_notify( GIOChannel *chan, GIOCondition condition, gpointer data );
+gboolean my_obj_process( DcopObject *obj, const gchar *fun, dcop_data *data,
+			 gchar **reply_type, dcop_data **reply_data );
+GList *my_obj_functions( DcopObject *obj );
+GList *my_obj_interfaces( DcopObject *obj );
+
 gboolean dcop_socket_notify( GIOChannel *chan, GIOCondition condition, gpointer data )
 {
     DcopClient *client = (DcopClient *)data;
+    chan = chan; condition = condition; /* shutup gcc */
     fprintf( stderr, "dcop_socket_notify\n" );
     dcop_client_process_socket_data( client );
 }
@@ -81,8 +89,8 @@
 {
   DcopClient *c;
   dcop_data *d;
-  dcop_data *reply;
-  char *reply_type;
+  /*dcop_data *reply;
+  char *reply_type;*/
   GIOChannel *chan;
   DcopObject *obj;
 
Index: marshal.h
===================================================================
RCS file: /home/kde/kdebindings/dcopc/marshal.h,v
retrieving revision 1.2
diff -u -r1.2 marshal.h
--- marshal.h	15 Nov 2000 14:48:44 -0000	1.2
+++ marshal.h	20 Apr 2003 11:35:12 -0000
@@ -41,7 +41,7 @@
 };
 
 /* remember to call ref() after this one! */
-dcop_data *dcop_data_new();
+dcop_data *dcop_data_new( void );
 
 /* do not call directly! use deref! */
 void dcop_data_destroy( dcop_data *data );
