[gnome-todo] main: Trivial style cleanup



commit 940d6deecc2d44377e3053db1ce59d0ac11da92f
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Thu Mar 28 18:11:53 2019 -0300

    main: Trivial style cleanup

 src/main.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/main.c b/src/main.c
index b73a508..3237f10 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1,4 +1,3 @@
-/* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 2; tab-width: 2 -*-  */
 /*
  * main.c
  * Copyright (C) 2015 Georges Basile Stavracas Neto <georges stavracas gmail com>
@@ -23,16 +22,17 @@
 #include <glib/gi18n.h>
 
 gint
-main (gint  argc,
-      char *argv[])
+main (gint    argc,
+      gchar **argv)
 {
-  g_autoptr (GtdApplication) app;
+  g_autoptr (GtdApplication) app = NULL;
+  g_autofree gchar *program_name = NULL;
 
   bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR);
   bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
   textdomain (GETTEXT_PACKAGE);
 
-  g_autofree gchar *program_name = g_strconcat (_("To Do"), NAME_SUFFIX, NULL);
+  program_name = g_strconcat (_("To Do"), NAME_SUFFIX, NULL);
   g_set_application_name (program_name);
 
   app = gtd_application_new ();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]