[emerillon] Make parse_options static (compile warning), fix coding style
- From: Łukasz Jernaś <ljernas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [emerillon] Make parse_options static (compile warning), fix coding style
- Date: Tue, 4 May 2010 10:08:58 +0000 (UTC)
commit b499cf814c1e70a1640cd54b9ea72d5d0e0a6f34
Author: Simon Wenner <simon wenner ch>
Date: Sun May 2 18:15:59 2010 +0200
Make parse_options static (compile warning), fix coding style
emerillon/main.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/emerillon/main.c b/emerillon/main.c
index 738c8a5..5e568e5 100644
--- a/emerillon/main.c
+++ b/emerillon/main.c
@@ -34,9 +34,9 @@
#include "window.h"
static void
-display_version()
+display_version ()
{
- g_print (_("%s - Version %s\n"), g_get_application_name(), PACKAGE_VERSION);
+ g_print (_("%s - Version %s\n"), g_get_application_name (), PACKAGE_VERSION);
exit (0);
}
@@ -47,16 +47,16 @@ static GOptionEntry entries[] =
{NULL}
};
-void
-parse_options(int *argc,
+static void
+parse_options (int *argc,
char ***argv)
{
GError *error = NULL;
GOptionContext *context;
context = g_option_context_new (_("- map viewer"));
- g_option_context_add_group(context, gtk_get_option_group (TRUE));
- g_option_context_add_main_entries(context, entries, GETTEXT_PACKAGE);
+ g_option_context_add_group (context, gtk_get_option_group (TRUE));
+ g_option_context_add_main_entries (context, entries, GETTEXT_PACKAGE);
if (!g_option_context_parse (context, argc, argv, &error))
{
g_print ("%s\n", error->message);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]