Changeset f0d5ef5 for select.c


Ignore:
Timestamp:
Jun 21, 2011, 11:19:09 PM (13 years ago)
Author:
David Benjamin <davidben@mit.edu>
Children:
12505e3
Parents:
c66ec48
git-author:
David Benjamin <davidben@mit.edu> (06/11/11 18:41:10)
git-committer:
David Benjamin <davidben@mit.edu> (06/21/11 23:19:09)
Message:
Remove global main_context variable

It's really not necessary. We can pass NULL to g_main_loop_new to use
the default context, and we don't reference the variable anywhere else.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • select.c

    rc5c5686 rf0d5ef5  
    22
    33static GMainLoop *loop = NULL;
    4 static GMainContext *main_context;
    54
    65void owl_select_init(void)
     
    109void owl_select_run_loop(void)
    1110{
    12   main_context = g_main_context_default();
    13   loop = g_main_loop_new(main_context, FALSE);
     11  loop = g_main_loop_new(NULL, FALSE);
    1412  g_main_loop_run(loop);
    1513}
Note: See TracChangeset for help on using the changeset viewer.