comparison mcabber/src/commands.c @ 1059:875d2c9d399c

Code cleanup Fix some prototypes.
author Mikael Berthe <mikael@lilotux.net>
date Thu, 30 Nov 2006 20:48:01 +0100
parents c0d44a9a99bc
children 516b5f7d1023
comparison
equal deleted inserted replaced
1058:c0d44a9a99bc 1059:875d2c9d399c
75 75
76 76
77 // cmd_add() 77 // cmd_add()
78 // Adds a command to the commands list and to the CMD completion list 78 // Adds a command to the commands list and to the CMD completion list
79 static void cmd_add(const char *name, const char *help, 79 static void cmd_add(const char *name, const char *help,
80 guint flags_row1, guint flags_row2, void (*f)()) 80 guint flags_row1, guint flags_row2, void (*f)(char*))
81 { 81 {
82 cmd *n_cmd = g_new0(cmd, 1); 82 cmd *n_cmd = g_new0(cmd, 1);
83 strncpy(n_cmd->name, name, 32-1); 83 strncpy(n_cmd->name, name, 32-1);
84 n_cmd->help = help; 84 n_cmd->help = help;
85 n_cmd->completion_flags[0] = flags_row1; 85 n_cmd->completion_flags[0] = flags_row1;
519 g_free(note->text); 519 g_free(note->text);
520 g_free(note->jid); 520 g_free(note->jid);
521 g_free(note); 521 g_free(note);
522 } 522 }
523 523
524 static void display_all_annotations() 524 static void display_all_annotations(void)
525 { 525 {
526 GSList *notes; 526 GSList *notes;
527 notes = jb_get_all_storage_rosternotes(); 527 notes = jb_get_all_storage_rosternotes();
528 // Call display_and_free_note() for each note, 528 // Call display_and_free_note() for each note,
529 // with winId = NULL (special window) 529 // with winId = NULL (special window)