aboutsummaryrefslogtreecommitdiffstats
path: root/src/command
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2021-10-05 10:01:27 +0200
committerMichael Vetter <jubalh@iodoru.org>2021-10-05 10:01:27 +0200
commitf21595597f4fa872b77d7f76ae04916f4aae732e (patch)
treef0d4dec07da9a695a8627575b1837ba26441e911 /src/command
parent7e8cf4a3d680ef5b8f056021846818fb526635d9 (diff)
downloadprofani-tty-f21595597f4fa872b77d7f76ae04916f4aae732e.tar.gz
Format code correctly
Diffstat (limited to 'src/command')
-rw-r--r--src/command/cmd_ac.c6
-rw-r--r--src/command/cmd_funcs.c14
2 files changed, 10 insertions, 10 deletions
diff --git a/src/command/cmd_ac.c b/src/command/cmd_ac.c
index 39ab24bc..9db42841 100644
--- a/src/command/cmd_ac.c
+++ b/src/command/cmd_ac.c
@@ -1613,7 +1613,7 @@ cmd_ac_complete_filepath(const char* const input, char* const startstr, gboolean
char* acstring;
if (output_off) {
tmp = g_strdup_printf("%s/%s", directory, dir->d_name);
- if(!tmp) {
+ if (!tmp) {
free(directory);
free(foofile);
return NULL;
@@ -2482,8 +2482,8 @@ _ox_autocomplete(ProfWin* window, const char* const input, gboolean previous)
if (conn_status == JABBER_CONNECTED) {
found = autocomplete_param_with_func(input, "/ox discover", roster_contact_autocomplete, previous, NULL);
- if (found) {
- return found;
+ if (found) {
+ return found;
}
}
diff --git a/src/command/cmd_funcs.c b/src/command/cmd_funcs.c
index 2a206d5b..67c59802 100644
--- a/src/command/cmd_funcs.c
+++ b/src/command/cmd_funcs.c
@@ -1651,7 +1651,7 @@ cmd_help(ProfWin* window, const char* const command, gchar** args)
cons_navigation_help();
} else {
char* cmd = args[0];
- char *cmd_with_slash = g_strdup_printf("/%s", cmd);
+ char* cmd_with_slash = g_strdup_printf("/%s", cmd);
Command* command = cmd_get(cmd_with_slash);
if (command) {
@@ -4708,8 +4708,8 @@ cmd_bookmark(ProfWin* window, const char* const command, gchar** args)
cons_show_bookmarks(bookmarks);
g_list_free(bookmarks);
} else {
- // list one bookmark
- Bookmark *bookmark = bookmark_get_by_jid(bookmark_jid);
+ // list one bookmark
+ Bookmark* bookmark = bookmark_get_by_jid(bookmark_jid);
cons_show_bookmark(bookmark);
}
@@ -7189,14 +7189,14 @@ cmd_plugins(ProfWin* window, const char* const command, gchar** args)
}
}
if (global_pyp_dir) {
- const gchar *filename;
+ const gchar* filename;
cons_show("The following Python plugins are available globally and can be installed:");
while ((filename = g_dir_read_name(global_pyp_dir))) {
cons_show(" %s", filename);
}
}
if (global_cp_dir) {
- const gchar *filename;
+ const gchar* filename;
cons_show("The following C plugins are available globally and can be installed:");
while ((filename = g_dir_read_name(global_cp_dir))) {
cons_show(" %s", filename);
@@ -9460,8 +9460,8 @@ cmd_editor(ProfWin* window, const char* const command, gchar** args)
}
// create editor dir if not present
- char *jid = connection_get_barejid();
- gchar *path = files_get_account_data_path(DIR_EDITOR, jid);
+ char* jid = connection_get_barejid();
+ gchar* path = files_get_account_data_path(DIR_EDITOR, jid);
if (g_mkdir_with_parents(path, S_IRWXU) != 0) {
cons_show_error("Failed to create directory at '%s' with error '%s'", path, strerror(errno));
free(jid);