Code cleanup
Fix some prototypes.
--- 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();
--- 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);
--- 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;