aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Rostovtsev <tetromino@gentoo.org>2012-02-05 02:51:55 -0500
committerAlexandre Rostovtsev <tetromino@gentoo.org>2012-02-05 02:51:55 -0500
commitc5fa3dd0f29f669d8495f3500ec82851a28e21ce (patch)
tree37989a5d3013b1df1f38471cb1b8acb7d6e2a425
parentEnable/disable debug at runtime via --debug flag (diff)
downloadopenrc-settingsd-c5fa3dd0f29f669d8495f3500ec82851a28e21ce.tar.gz
openrc-settingsd-c5fa3dd0f29f669d8495f3500ec82851a28e21ce.tar.bz2
openrc-settingsd-c5fa3dd0f29f669d8495f3500ec82851a28e21ce.zip
Better variable names
-rw-r--r--src/main.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main.c b/src/main.c
index 1cff0f5..7463fd3 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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);
}