diff options
author | Alexandre Rostovtsev <tetromino@gentoo.org> | 2012-02-05 02:51:55 -0500 |
---|---|---|
committer | Alexandre Rostovtsev <tetromino@gentoo.org> | 2012-02-05 02:51:55 -0500 |
commit | c5fa3dd0f29f669d8495f3500ec82851a28e21ce (patch) | |
tree | 37989a5d3013b1df1f38471cb1b8acb7d6e2a425 | |
parent | Enable/disable debug at runtime via --debug flag (diff) | |
download | openrc-settingsd-c5fa3dd0f29f669d8495f3500ec82851a28e21ce.tar.gz openrc-settingsd-c5fa3dd0f29f669d8495f3500ec82851a28e21ce.tar.bz2 openrc-settingsd-c5fa3dd0f29f669d8495f3500ec82851a28e21ce.zip |
Better variable names
-rw-r--r-- | src/main.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -31,7 +31,7 @@ static gboolean debug = FALSE; -static GOptionEntry entries[] = +static GOptionEntry option_entries[] = { { "debug", 0, 0, G_OPTION_ARG_NONE, &debug, "Enable debugging messages", NULL }, { NULL } @@ -51,15 +51,15 @@ gint main (gint argc, gchar *argv[]) { GError *error = NULL; - GOptionContext *context; + GOptionContext *option_context; GMainLoop *loop = NULL; g_type_init (); g_log_set_default_handler (log_handler, NULL); - context = g_option_context_new ("- system settings D-Bus service for OpenRC"); - g_option_context_add_main_entries (context, entries, NULL); - if (!g_option_context_parse (context, &argc, &argv, &error)) { + option_context = g_option_context_new ("- system settings D-Bus service for OpenRC"); + g_option_context_add_main_entries (option_context, option_entries, NULL); + if (!g_option_context_parse (option_context, &argc, &argv, &error)) { g_printerr ("Failed to parse options: %s\n", error->message); exit (1); } |