mcabber_disconnect() -> static mcabber_terminate()
authorMikael Berthe <mikael@lilotux.net>
Sun, 17 Sep 2006 14:35:25 +0200
changeset 962 e79af58cd0be
parent 961 95659cf9ea1a
child 963 fc98d932af4f
mcabber_disconnect() -> static mcabber_terminate()
mcabber/src/main.c
--- a/mcabber/src/main.c	Sun Sep 17 14:32:27 2006 +0200
+++ b/mcabber/src/main.c	Sun Sep 17 14:35:25 2006 +0200
@@ -144,7 +144,7 @@
   jb_reset_keepalive();
 }
 
-void mcabber_disconnect(const char *msg)
+static void mcabber_terminate(const char *msg)
 {
   jb_disconnect();
   scr_TerminateCurses();
@@ -178,9 +178,9 @@
     } while (pid > 0);
     signal(SIGCHLD, sig_handler);
   } else if (signum == SIGTERM) {
-    mcabber_disconnect("Killed by SIGTERM");
+    mcabber_terminate("Killed by SIGTERM");
   } else if (signum == SIGINT) {
-    mcabber_disconnect("Killed by SIGINT");
+    mcabber_terminate("Killed by SIGINT");
   } else {
     scr_LogPrint(LPRINT_LOGNORM, "Caught signal: %d", signum);
   }