Cleaned a few warnings about deprecated functions.
authorDave West <davew@uncensored.citadel.org>
Tue, 10 Nov 2009 20:00:25 +0000 (20:00 +0000)
committerDave West <davew@uncensored.citadel.org>
Tue, 10 Nov 2009 20:00:25 +0000 (20:00 +0000)
citadel/citserver.c
citadel/context.c
citadel/euidindex.c
citadel/modules/calendar/serv_calendar.c
citadel/modules/jabber/xmpp_sasl_service.c
citadel/msgbase.c

index a0ef13419aec364b6655ecba93cbd2585e644099..d0c7007ff37cdd020b21e8c76f7752f7c6a57d5f 100644 (file)
@@ -1040,7 +1040,7 @@ void cmd_quit(char *argbuf)
 void cmd_lout(char *argbuf)
 {
        if (CC->logged_in) 
-               logout();
+               CtdlUserLogout();
        cprintf("%d logged out.\n", CIT_OK);
 }
 
index c7902af980ad2fb743d8927f7529b3074e72fbfa..bb16d04765e560c5e4d3948cc4dfd788a43bac87 100644 (file)
@@ -239,7 +239,7 @@ void RemoveContext (CitContext *con)
         *       might make references to "CC" assuming it's the right one.
         */
        become_session(con);
-       logout();
+       CtdlUserLogout();
        PerformSessionHooks(EVT_STOP);
        become_session(NULL);
 
index c7499d832f35ccf700d427c8a35c274f380b8997..d45689ff730c625d1744ae46ec672fce7836ed30 100644 (file)
@@ -233,7 +233,7 @@ void cmd_euid(char *cmdbuf) {
        if (CtdlAccessCheck(ac_logged_in)) return;
 
        extract_token(euid, cmdbuf, 0, '|', sizeof euid);
-       msgnum = locate_message_by_euid(euid, &CC->room);
+       msgnum = CtdlLocateMessageByEuid(euid, &CC->room);
        if (msgnum <= 0L) {
                cprintf("%d not found\n", ERROR + MESSAGE_NOT_FOUND);
                return;
index 0426814af7c42619bbbbb9a4b4de5d63354e9af0..bf9f2e9afa2bc1b3a082ca8c83e00ad0972de59d 100644 (file)
@@ -612,7 +612,7 @@ int ical_update_my_calendar_with_reply(icalcomponent *cal) {
         * Citadel always sets the message EUID to the iCalendar UID of
         * the event, this will work.
         */
-       msgnum_being_replaced = locate_message_by_euid(uid, &CC->room);
+       msgnum_being_replaced = CtdlLocateMessageByEuid(uid, &CC->room);
 
        CtdlGetRoom(&CC->room, hold_rm);        /* return to saved room */
 
index f015236e0146528097d3174688c33372b5ab2a6e..1391512c485f3db0d570ea415921360d63179043 100644 (file)
@@ -130,7 +130,7 @@ void xmpp_sasl_auth(char *sasl_auth_mech, char *authstring) {
                return;
        }
 
-        if (CC->logged_in) logout();  /* Client may try to log in twice.  Handle this. */
+        if (CC->logged_in) CtdlUserLogout();  /* Client may try to log in twice.  Handle this. */
 
        if (CC->nologin) {
                cprintf("<failure xmlns=\"urn:ietf:params:xml:ns:xmpp-sasl\">");
@@ -157,7 +157,7 @@ void xmpp_sasl_auth(char *sasl_auth_mech, char *authstring) {
 void jabber_non_sasl_authenticate(char *iq_id, char *username, char *password, char *resource) {
        int result;
 
-        if (CC->logged_in) logout();  /* Client may try to log in twice.  Handle this. */
+        if (CC->logged_in) CtdlUserLogout();  /* Client may try to log in twice.  Handle this. */
 
        result = CtdlLoginExistingUser(NULL, username);
        if (result == login_ok) {
index 779d395060cab55bd330cf5fd76ba714c4bd0e71..4f5c4046f0bdea2291a6203ae88a7d86f0d631ea 100644 (file)
@@ -2699,7 +2699,7 @@ void ReplicationChecks(struct CtdlMessage *msg) {
        /*CtdlLogPrintf(CTDL_DEBUG, "Exclusive ID: <%s> for room <%s>\n",
                msg->cm_fields['E'], CC->room.QRname);*/
 
-       old_msgnum = locate_message_by_euid(msg->cm_fields['E'], &CC->room);
+       old_msgnum = CtdlLocateMessageByEuid(msg->cm_fields['E'], &CC->room);
        if (old_msgnum > 0L) {
                CtdlLogPrintf(CTDL_DEBUG, "ReplicationChecks() replacing message %ld\n", old_msgnum);
                CtdlDeleteMessages(CC->room.QRname, &old_msgnum, 1, "");
@@ -2959,7 +2959,7 @@ long CtdlSubmitMsg(struct CtdlMessage *msg,       /* message to save */
                        msg->cm_fields['W'] = strdup(recipient);
                        CtdlMailboxName(actual_rm, sizeof actual_rm, &userbuf, MAILROOM);
                        CtdlSaveMsgPointerInRoom(actual_rm, newmsgid, 0, msg);
-                       BumpNewMailCounter(userbuf.usernum);
+                       CtdlBumpNewMailCounter(userbuf.usernum);
                        if (!IsEmptyStr(config.c_funambol_host) || !IsEmptyStr(config.c_pager_program)) {
                        /* Generate a instruction message for the Funambol notification
                         * server, in the same style as the SMTP queue