about summary refs log tree commit diff stats
path: root/src/profanity.c
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2020-07-07 14:18:57 +0200
committerMichael Vetter <jubalh@iodoru.org>2020-07-07 14:18:57 +0200
commita2726b6a7d16f5f846a882fbbe9127e4604bb8bb (patch)
treee6d101676dec96430eafa645ad2b7bd5391a4294 /src/profanity.c
parent95015cec56fa56f2ef97227edf06de17c65000d9 (diff)
downloadprofani-tty-a2726b6a7d16f5f846a882fbbe9127e4604bb8bb.tar.gz
Apply coding style
Diffstat (limited to 'src/profanity.c')
-rw-r--r--src/profanity.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/profanity.c b/src/profanity.c
index 45cef2d0..7b3da306 100644
--- a/src/profanity.c
+++ b/src/profanity.c
@@ -86,16 +86,16 @@
 #include "omemo/omemo.h"
 #endif
 
-static void _init(char *log_level, char *config_file, char *log_file, char *theme_name);
+static void _init(char* log_level, char* config_file, char* log_file, char* theme_name);
 static void _shutdown(void);
-static void _connect_default(const char * const account);
+static void _connect_default(const char* const account);
 
 pthread_mutex_t lock;
 static gboolean cont = TRUE;
 static gboolean force_quit = FALSE;
 
 void
-prof_run(char *log_level, char *account_name, char *config_file, char *log_file, char *theme_name)
+prof_run(char* log_level, char* account_name, char* config_file, char* log_file, char* theme_name)
 {
     _init(log_level, config_file, log_file, theme_name);
     plugins_on_start();
@@ -107,14 +107,14 @@ prof_run(char *log_level, char *account_name, char *config_file, char *log_file,
 
     session_init_activity();
 
-    char *line = NULL;
-    while(cont && !force_quit) {
+    char* line = NULL;
+    while (cont && !force_quit) {
         log_stderr_handler();
         session_check_autoaway();
 
         line = inp_readline();
         if (line) {
-            ProfWin *window = wins_get_current();
+            ProfWin* window = wins_get_current();
             cont = cmd_process_input(window, line);
             free(line);
             line = NULL;
@@ -143,13 +143,13 @@ prof_set_quit(void)
 }
 
 static void
-_connect_default(const char *const account)
+_connect_default(const char* const account)
 {
-    ProfWin *window = wins_get_current();
+    ProfWin* window = wins_get_current();
     if (account) {
         cmd_execute_connect(window, account);
     } else {
-        char *pref_connect_account = prefs_get_string(PREF_CONNECT_ACCOUNT);
+        char* pref_connect_account = prefs_get_string(PREF_CONNECT_ACCOUNT);
         if (pref_connect_account) {
             cmd_execute_connect(window, pref_connect_account);
             g_free(pref_connect_account);
@@ -158,7 +158,7 @@ _connect_default(const char *const account)
 }
 
 static void
-_init(char *log_level, char *config_file, char *log_file, char *theme_name)
+_init(char* log_level, char* config_file, char* log_file, char* theme_name)
 {
     setlocale(LC_ALL, "");
     // ignore SIGPIPE
@@ -180,9 +180,9 @@ _init(char *log_level, char *config_file, char *log_file, char *theme_name)
 
     if (strcmp(PACKAGE_STATUS, "development") == 0) {
 #ifdef HAVE_GIT_VERSION
-            log_info("Starting Profanity (%sdev.%s.%s)...", PACKAGE_VERSION, PROF_GIT_BRANCH, PROF_GIT_REVISION);
+        log_info("Starting Profanity (%sdev.%s.%s)...", PACKAGE_VERSION, PROF_GIT_BRANCH, PROF_GIT_REVISION);
 #else
-            log_info("Starting Profanity (%sdev)...", PACKAGE_VERSION);
+        log_info("Starting Profanity (%sdev)...", PACKAGE_VERSION);
 #endif
     } else {
         log_info("Starting Profanity (%s)...", PACKAGE_VERSION);
@@ -195,7 +195,7 @@ _init(char *log_level, char *config_file, char *log_file, char *theme_name)
     if (theme_name) {
         theme_init(theme_name);
     } else {
-        char *theme = prefs_get_string(PREF_THEME);
+        char* theme = prefs_get_string(PREF_THEME);
         theme_init(theme);
         g_free(theme);
     }