diff options
author | Bertrand Jacquin (Beber) <beber@setibzh.com> | 2006-01-19 02:30:28 +0100 |
---|---|---|
committer | Bertrand Jacquin (Beber) <beber@setibzh.com> | 2006-01-19 02:30:28 +0100 |
commit | 6ff3552ce520e8727196d2775094ccca568a5fb8 (patch) | |
tree | 1fc65f1b4e1b01376723e388f522bf8886a8f166 /src | |
parent | Add a m4 for evas (diff) | |
download | espik-6ff3552ce520e8727196d2775094ccca568a5fb8.tar.xz |
freeeee
Diffstat (limited to 'src')
-rw-r--r-- | src/espik_common_handler.c | 2 | ||||
-rw-r--r-- | src/espik_net.c | 7 | ||||
-rw-r--r-- | src/espik_net.h | 2 |
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 (); |