# HG changeset patch # User Mikael Berthe # Date 1164916081 -3600 # Node ID 875d2c9d399c65e3bd9e350e110c0219ac94e976 # Parent c0d44a9a99bceb719d66a966965d22577e957165 Code cleanup Fix some prototypes. diff -r c0d44a9a99bc -r 875d2c9d399c mcabber/src/commands.c --- a/mcabber/src/commands.c Thu Nov 30 19:51:09 2006 +0100 +++ b/mcabber/src/commands.c Thu Nov 30 20:48:01 2006 +0100 @@ -77,7 +77,7 @@ // cmd_add() // Adds a command to the commands list and to the CMD completion list static void cmd_add(const char *name, const char *help, - guint flags_row1, guint flags_row2, void (*f)()) + guint flags_row1, guint flags_row2, void (*f)(char*)) { cmd *n_cmd = g_new0(cmd, 1); strncpy(n_cmd->name, name, 32-1); @@ -521,7 +521,7 @@ g_free(note); } -static void display_all_annotations() +static void display_all_annotations(void) { GSList *notes; notes = jb_get_all_storage_rosternotes(); diff -r c0d44a9a99bc -r 875d2c9d399c mcabber/src/commands.h --- a/mcabber/src/commands.h Thu Nov 30 19:51:09 2006 +0100 +++ b/mcabber/src/commands.h Thu Nov 30 20:48:01 2006 +0100 @@ -8,7 +8,7 @@ char name[32]; const char *help; guint completion_flags[2]; - void (*func)(); + void (*func)(char *); } cmd; void cmd_init(void); diff -r c0d44a9a99bc -r 875d2c9d399c mcabber/src/screen.c --- a/mcabber/src/screen.c Thu Nov 30 19:51:09 2006 +0100 +++ b/mcabber/src/screen.c Thu Nov 30 20:48:01 2006 +0100 @@ -966,7 +966,7 @@ // Function called when the window is resized. // - Resize windows // - Rewrap lines in each buddy buffer -void scr_Resize() +void scr_Resize(void) { int x, y, lines, cols; GSList *wblp; @@ -1923,7 +1923,7 @@ // scr_get_multimode() // Public function to get multimode status... -inline int scr_get_multimode() +inline int scr_get_multimode(void) { return multimode; } @@ -2095,7 +2095,7 @@ // Drag the character before point forward over the character at // point, moving point forward as well. If point is at the end of // the line, then this transposes the two characters before point. -void readline_transpose_chars() +void readline_transpose_chars(void) { char *c1, *c2; unsigned a, b; @@ -2124,7 +2124,7 @@ // readline_backward_kill_word() // Kill the word before the cursor, in input line -void readline_backward_kill_word() +void readline_backward_kill_word(void) { char *c, *old = ptr_inputline; int spaceallowed = 1; @@ -2155,7 +2155,7 @@ // readline_backward_word() // Move back to the start of the current or previous word -void readline_backward_word() +void readline_backward_word(void) { char *old_ptr_inputLine = ptr_inputline; int spaceallowed = 1; @@ -2182,7 +2182,7 @@ // readline_forward_word() // Move forward to the end of the next word -void readline_forward_word() +void readline_forward_word(void) { int spaceallowed = 1;