diff options
author | Michael Vetter <jubalh@iodoru.org> | 2020-07-07 14:18:57 +0200 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2020-07-07 14:18:57 +0200 |
commit | a2726b6a7d16f5f846a882fbbe9127e4604bb8bb (patch) | |
tree | e6d101676dec96430eafa645ad2b7bd5391a4294 /src/main.c | |
parent | 95015cec56fa56f2ef97227edf06de17c65000d9 (diff) | |
download | profani-tty-a2726b6a7d16f5f846a882fbbe9127e4604bb8bb.tar.gz |
Apply coding style
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/src/main.c b/src/main.c index ef6dd26e..b7e2f6dd 100644 --- a/src/main.c +++ b/src/main.c @@ -60,22 +60,21 @@ #include "command/cmd_defs.h" static gboolean version = FALSE; -static char *log = NULL; -static char *log_file = NULL; -static char *account_name = NULL; -static char *config_file = NULL; -static char *theme_name = NULL; +static char* log = NULL; +static char* log_file = NULL; +static char* account_name = NULL; +static char* config_file = NULL; +static char* theme_name = NULL; int -main(int argc, char **argv) +main(int argc, char** argv) { if (argc == 2 && g_strcmp0(argv[1], "docgen") == 0 && g_strcmp0(PACKAGE_STATUS, "development") == 0) { command_docgen(); return 0; } - static GOptionEntry entries[] = - { + static GOptionEntry entries[] = { { "version", 'v', 0, G_OPTION_ARG_NONE, &version, "Show version information", NULL }, { "account", 'a', 0, G_OPTION_ARG_STRING, &account_name, "Auto connect to an account on startup" }, { "log", 'l', 0, G_OPTION_ARG_STRING, &log, "Set logging levels, DEBUG, INFO, WARN (default), ERROR", "LEVEL" }, @@ -85,8 +84,8 @@ main(int argc, char **argv) { NULL } }; - GError *error = NULL; - GOptionContext *context; + GError* error = NULL; + GOptionContext* context; context = g_option_context_new(NULL); g_option_context_add_main_entries(context, entries, NULL); @@ -135,14 +134,14 @@ main(int argc, char **argv) } #ifdef HAVE_LIBOTR - char *otr_version = otr_libotr_version(); + char* otr_version = otr_libotr_version(); g_print("OTR support: Enabled (libotr %s)\n", otr_version); #else g_print("OTR support: Disabled\n"); #endif #ifdef HAVE_LIBGPGME - const char *pgp_version = p_gpg_libver(); + const char* pgp_version = p_gpg_libver(); g_print("PGP support: Enabled (libgpgme %s)\n", pgp_version); #else g_print("PGP support: Disabled\n"); @@ -161,7 +160,7 @@ main(int argc, char **argv) #endif #ifdef HAVE_PYTHON - gchar *python_version = python_get_version_number(); + gchar* python_version = python_get_version_number(); g_print("Python plugins: Enabled (%s)\n", python_version); g_free(python_version); #else |