Changeset f394500


Ignore:
Timestamp:
2008-01-05T15:00:15Z (17 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
3585c5a
Parents:
6f7ac17
Message:

Removed closure->result. I was planning to add some more stuff, but will
do that later.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/events_glib.c

    r6f7ac17 rf394500  
    4848typedef struct _GaimIOClosure {
    4949        b_event_handler function;
    50         guint result;
    5150        gpointer data;
    5251} GaimIOClosure;
     
    101100        GIOChannel *channel;
    102101        GIOCondition cond = 0;
     102        int st;
    103103       
    104104        closure->function = function;
     
    111111       
    112112        channel = g_io_channel_unix_new(source);
    113         closure->result = g_io_add_watch_full(channel, G_PRIORITY_DEFAULT, cond,
    114                                               gaim_io_invoke, closure, gaim_io_destroy);
     113        st = g_io_add_watch_full(channel, G_PRIORITY_DEFAULT, cond,
     114                                 gaim_io_invoke, closure, gaim_io_destroy);
    115115       
    116         event_debug( "b_input_add( %d, %d, 0x%x, 0x%x ) = %d (0x%x)\n", source, condition, function, data, closure->result, closure );
     116        event_debug( "b_input_add( %d, %d, 0x%x, 0x%x ) = %d (%p)\n", source, condition, function, data, st, closure );
    117117       
    118118        g_io_channel_unref(channel);
    119         return closure->result;
     119        return st;
    120120}
    121121
Note: See TracChangeset for help on using the changeset viewer.