diff options
-rw-r--r-- | src/fe-text/gui-windows.c | 4 | ||||
-rw-r--r-- | src/irc/core/netsplit.c | 4 |
2 files changed, 3 insertions, 5 deletions
diff --git a/src/fe-text/gui-windows.c b/src/fe-text/gui-windows.c index e0ce2e35..4213149d 100644 --- a/src/fe-text/gui-windows.c +++ b/src/fe-text/gui-windows.c @@ -68,7 +68,7 @@ static void sig_window_create_override(gpointer tab) static void gui_window_created(WINDOW_REC *window, void *automatic) { MAIN_WINDOW_REC *parent; - int empty_window, new_parent; + int new_parent; g_return_if_fail(window != NULL); @@ -84,8 +84,6 @@ static void gui_window_created(WINDOW_REC *window, void *automatic) } window_create_override = -1; - empty_window = parent->active == NULL; - if (parent->active == NULL) parent->active = window; window->gui_data = gui_window_init(window, parent); diff --git a/src/irc/core/netsplit.c b/src/irc/core/netsplit.c index 269d2556..706212ee 100644 --- a/src/irc/core/netsplit.c +++ b/src/irc/core/netsplit.c @@ -221,7 +221,7 @@ NETSPLIT_CHAN_REC *netsplit_find_channel(IRC_SERVER_REC *server, /* check if quit message is a netsplit message */ int quitmsg_is_split(const char *msg) { - const char *host1, *host2, *p; + const char *host2, *p; int prev, len, host1_dot, host2_dot; g_return_val_if_fail(msg != NULL, FALSE); @@ -241,7 +241,7 @@ int quitmsg_is_split(const char *msg) - the two hosts can't be identical (probably useless check) - can't contain ':' or '/' chars (some servers allow URLs) */ - host1 = msg; host2 = NULL; + host2 = NULL; prev = '\0'; len = 0; host1_dot = host2_dot = 0; while (*msg != '\0') { if (*msg == ' ') { |