aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/espik_common_handler.c2
-rw-r--r--src/espik_net.c7
-rw-r--r--src/espik_net.h2
3 files changed, 5 insertions, 6 deletions
diff --git a/src/espik_common_handler.c b/src/espik_common_handler.c
index 3177cd9..0e6d8c5 100644
--- a/src/espik_common_handler.c
+++ b/src/espik_common_handler.c
@@ -149,7 +149,7 @@ int kb_get (void* data __UNUSED__, Ecore_Fd_Handler* fd_handler)
if (count == 0)
{
- tmp = irc_quit (NULL, strdup("^D pressed"));
+ tmp = irc_quit (NULL, "^D pressed");
espik_debug_print ("tmp: %s", tmp);
espik_raw_send (tmp);
espik_debug_print ("AFTER espik_raw_send");
diff --git a/src/espik_net.c b/src/espik_net.c
index c8b7652..d93dda0 100644
--- a/src/espik_net.c
+++ b/src/espik_net.c
@@ -93,15 +93,14 @@ void send_login()
espik_raw_send (tmp);
espik_debug_print("tmp2: %s", tmp2);
espik_raw_send (tmp2);
- espik_raw_send (strdup ("JOIN #e.fr"));
+ espik_raw_send ("JOIN #e.fr");
com_active = 1;
// espik_debug_print ("<<<<<<<< DUMMMMY CODE >>>>>>>");
-/* free (tmp);
+ free (tmp);
free (tmp2);
- */
connected++;
espik_leave();
@@ -130,7 +129,7 @@ void espik_con_shutdown ()
espik_leave();
}
-void espik_raw_send (char *msg)
+void espik_raw_send (const char *msg)
{
buf_t buf;
espik_enter();
diff --git a/src/espik_net.h b/src/espik_net.h
index ecfa7d3..a095ba9 100644
--- a/src/espik_net.h
+++ b/src/espik_net.h
@@ -3,7 +3,7 @@
#include "espik.h"
-void espik_raw_send (char*);
+void espik_raw_send (const char*);
void espik_con_init (t_info);
void espik_con_up();
void espik_con_shutdown ();