small cleanup

This commit is contained in:
Daniel Micay 2012-05-31 09:17:08 -04:00
parent 277f27d25c
commit 0feceaf03a
1 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@
static gchar *role = NULL;
static GOptionEntry entries[] = {
static const GOptionEntry entries[] = {
{ "role", 'r', 0, G_OPTION_ARG_STRING, &role, "The role to use", "ROLE" },
{ NULL }
};
@ -173,7 +173,7 @@ int main(int argc, char **argv) {
GOptionContext *context = g_option_context_new("[COMMAND]");
g_option_context_add_main_entries(context, entries, NULL);
g_option_context_add_group(context, gtk_get_option_group (TRUE));
g_option_context_add_group(context, gtk_get_option_group(TRUE));
if (!g_option_context_parse(context, &argc, &argv, &error)) {
g_print("option parsing failed: %s\n", error->message);