mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-21 15:56:22 +00:00
Reduce scope of variables in ui/core
Not as important as the other one (where there was a double declaration). But for the sake of consistency.
This commit is contained in:
@@ -2582,12 +2582,9 @@ ui_handle_room_configuration_form_error(const char * const roomjid, const char *
|
||||
void
|
||||
ui_handle_room_config_submit_result(const char * const roomjid)
|
||||
{
|
||||
ProfWin *muc_window = NULL;
|
||||
ProfWin *form_window = NULL;
|
||||
int num;
|
||||
|
||||
if (roomjid) {
|
||||
muc_window = (ProfWin*)wins_get_muc(roomjid);
|
||||
ProfWin *form_window = NULL;
|
||||
ProfWin *muc_window = (ProfWin*)wins_get_muc(roomjid);
|
||||
|
||||
GString *form_recipient = g_string_new(roomjid);
|
||||
g_string_append(form_recipient, " config");
|
||||
@@ -2595,7 +2592,7 @@ ui_handle_room_config_submit_result(const char * const roomjid)
|
||||
g_string_free(form_recipient, TRUE);
|
||||
|
||||
if (form_window) {
|
||||
num = wins_get_num(form_window);
|
||||
int num = wins_get_num(form_window);
|
||||
wins_close_by_num(num);
|
||||
}
|
||||
|
||||
@@ -2616,10 +2613,9 @@ void
|
||||
ui_handle_room_config_submit_result_error(const char * const roomjid, const char * const message)
|
||||
{
|
||||
ProfWin *console = wins_get_console();
|
||||
ProfWin *muc_window = NULL;
|
||||
ProfWin *form_window = NULL;
|
||||
|
||||
if (roomjid) {
|
||||
ProfWin *muc_window = NULL;
|
||||
ProfWin *form_window = NULL;
|
||||
muc_window = (ProfWin*)wins_get_muc(roomjid);
|
||||
|
||||
GString *form_recipient = g_string_new(roomjid);
|
||||
|
||||
Reference in New Issue
Block a user