Changeset 84a071f for select.c


Ignore:
Timestamp:
Jun 22, 2011, 12:37:22 AM (13 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.10, release-1.8, release-1.9
Children:
87ab6e5, d427f08
Parents:
e146cd7
git-author:
David Benjamin <davidben@mit.edu> (06/11/11 18:41:10)
git-committer:
David Benjamin <davidben@mit.edu> (06/22/11 00:37:22)
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

    raa69c1e r84a071f  
    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.