ayttm-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Ayttm-commits] CVS: ayttm/modules/msn2 msn.C,1.57,1.58


From: Philip S Tellis <address@hidden>
Subject: [Ayttm-commits] CVS: ayttm/modules/msn2 msn.C,1.57,1.58
Date: Fri, 31 Jan 2003 08:30:44 -0500

Update of /cvsroot/ayttm/ayttm/modules/msn2
In directory subversions:/tmp/cvs-serv15650/modules/msn2

Modified Files:
        msn.C 
Log Message:
make some service args const

Index: msn.C
===================================================================
RCS file: /cvsroot/ayttm/ayttm/modules/msn2/msn.C,v
retrieving revision 1.57
retrieving revision 1.58
diff -u -r1.57 -r1.58
--- msn.C       30 Jan 2003 11:06:38 -0000      1.57
+++ msn.C       31 Jan 2003 13:30:42 -0000      1.58
@@ -111,7 +111,7 @@
 void eb_msn_clean_up_chat_room(msnconn * conn);
 char * realloc_cpp(char * s);
 char * g_realloc_cpp(gchar * s);
-eb_account * eb_msn_new_account( gchar * account );
+eb_account * eb_msn_new_account( const char * account );
 
 LList * psmileys=NULL;
 
@@ -123,12 +123,12 @@
 struct service_callbacks * query_callbacks();
 //char * msn_create_mail_initial_notify (int unread_ibc, int unread_fold);
 //char * msn_create_new_mail_notify (char * from, char * subject);
-static char *Utf8ToStr(char *in);
-static char *StrToUtf8(char *in);
+static char *Utf8ToStr(const char *in);
+static char *StrToUtf8(const char *in);
 void eb_msn_format_message (message * msg);
 static char *eb_msn_get_color(void) { static char color[]="#aa0000"; return 
color; }
 void close_conn(msnconn *conn);
-void eb_msn_real_change_group(eb_account * ea, gchar *old_group, gchar 
*new_group);
+void eb_msn_real_change_group(eb_account * ea, const char *old_group, const 
char *new_group);
 
 LList *eb_msn_get_smileys(void) { return psmileys; }
 }
@@ -1013,7 +1013,7 @@
         }
 }
 
-eb_account * eb_msn_new_account( gchar * account )
+eb_account * eb_msn_new_account( const char * account )
 {
        eb_account * ea = (eb_account *)g_new0(eb_account, 1);
        eb_msn_account_data * mad = (eb_msn_account_data *)g_new0( 
eb_msn_account_data, 1 );
@@ -1275,10 +1275,10 @@
 
 static int finish_group_move(movecb_data *tomove);
 
-void eb_msn_real_change_group(eb_account * ea, gchar *old_group, gchar 
*new_group)
+void eb_msn_real_change_group(eb_account * ea, const char *old_group, const 
char *new_group)
 {
        char *oldid = NULL, *newid = NULL;
-       char *int_new_group = NULL, *int_old_group;
+       const char *int_new_group = NULL, *int_old_group;
        if (!strcmp(_("Buddies"), new_group))
                int_new_group = "~";
        else
@@ -1309,7 +1309,7 @@
        msn_change_group(mainconn, ea->handle, oldid, newid);
 }
 
-void eb_msn_change_group(eb_account * ea, char *new_group)
+void eb_msn_change_group(eb_account * ea, const char *new_group)
 {
        eb_msn_real_change_group(ea,ea->account_contact->group->name, 
new_group);
 }
@@ -1333,7 +1333,7 @@
        return TRUE;
 }
 
-void eb_msn_del_group(gchar *group) 
+void eb_msn_del_group(const char *group) 
 {
        char *id = NULL;
        
@@ -1355,7 +1355,7 @@
        }
 }
 
-void eb_msn_add_group(gchar *group) 
+void eb_msn_add_group(const char *group) 
 {
        char *id = NULL;
        
@@ -1372,7 +1372,7 @@
        }
 }
 
-void eb_msn_rename_group(gchar *ogroup, gchar *ngroup) 
+void eb_msn_rename_group(const char *ogroup, const char *ngroup) 
 {
        char *id = NULL;
        
@@ -2115,7 +2115,7 @@
 ** Input:   in     - the string to convert
 ** Output:  a new string in UTF-8 format
 */
-static char *StrToUtf8(char *in)
+static char *StrToUtf8(const char *in)
 {
     unsigned int n, i = 0;
     char *result = NULL;
@@ -2144,7 +2144,7 @@
 ** Input:   in     - the string to decode
 ** Output:  a new decoded string
 */
-static char *Utf8ToStr(char *in)
+static char *Utf8ToStr(const char *in)
 {
     int i = 0;
     unsigned int n;





reply via email to

[Prev in Thread] Current Thread [Next in Thread]