these functions return a const char *, so they should actually return a const char *
authordiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 28 Jul 2010 22:32:39 +0000 (22:32 +0000)
committerdiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 28 Jul 2010 22:32:39 +0000 (22:32 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@50622 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/ecore_con/Ecore_Con.h
src/lib/ecore_con/ecore_con.c

index bc7ba4d..043dda3 100644 (file)
@@ -237,7 +237,7 @@ EAPI void              ecore_con_server_client_limit_set(
    int client_limit,
    char
    reject_excess_clients);
-EAPI char *            ecore_con_server_ip_get(Ecore_Con_Server *svr);
+EAPI const char *      ecore_con_server_ip_get(Ecore_Con_Server *svr);
 EAPI void              ecore_con_server_flush(Ecore_Con_Server *svr);
 
 EAPI int               ecore_con_client_send(Ecore_Con_Client *cl,
@@ -248,7 +248,7 @@ EAPI void *            ecore_con_client_del(Ecore_Con_Client *cl);
 EAPI void              ecore_con_client_data_set(Ecore_Con_Client *cl,
                                                  const void *data);
 EAPI void *            ecore_con_client_data_get(Ecore_Con_Client *cl);
-EAPI char *            ecore_con_client_ip_get(Ecore_Con_Client *cl);
+EAPI const char *      ecore_con_client_ip_get(Ecore_Con_Client *cl);
 EAPI void              ecore_con_client_flush(Ecore_Con_Client *cl);
 
 EAPI int               ecore_con_ssl_available_get(void);
index 2857028..9fa8e7d 100644 (file)
@@ -598,7 +598,7 @@ ecore_con_server_client_limit_set(Ecore_Con_Server *svr, int client_limit,
  *          deletion for the @p svr object. If no IP is known NULL is returned.
  * @ingroup Ecore_Con_Server_Group
  */
-EAPI char *
+EAPI const char *
 ecore_con_server_ip_get(Ecore_Con_Server *svr)
 {
    if (!ECORE_MAGIC_CHECK(svr, ECORE_MAGIC_CON_SERVER))
@@ -811,7 +811,7 @@ ecore_con_client_data_get(Ecore_Con_Client *cl)
  *          deletion for the @p cl object. If no IP is known NULL is returned.
  * @ingroup Ecore_Con_Client_Group
  */
-EAPI char *
+EAPI const char *
 ecore_con_client_ip_get(Ecore_Con_Client *cl)
 {
    if (!ECORE_MAGIC_CHECK(cl, ECORE_MAGIC_CON_CLIENT))