projects
/
citadel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Did away with lprintf all together now its called CtdlLogPrintf()
[citadel.git]
/
citadel
/
modules
/
extnotify
/
extnotify_main.c
diff --git
a/citadel/modules/extnotify/extnotify_main.c
b/citadel/modules/extnotify/extnotify_main.c
index 20d40a04ef57fe1a82b92baa73af83a316a0edea..fb6823da416543403b21dc2662656c18fc76a091 100644
(file)
--- a/
citadel/modules/extnotify/extnotify_main.c
+++ b/
citadel/modules/extnotify/extnotify_main.c
@@
-90,16
+90,16
@@
void do_extnotify_queue(void) {
/*
* Go ahead and run the queue
*/
/*
* Go ahead and run the queue
*/
-
lp
rintf(CTDL_DEBUG, "serv_extnotify: processing notify queue\n");
+
CtdlLogP
rintf(CTDL_DEBUG, "serv_extnotify: processing notify queue\n");
if (getroom(&CC->room, FNBL_QUEUE_ROOM) != 0) {
if (getroom(&CC->room, FNBL_QUEUE_ROOM) != 0) {
-
lp
rintf(CTDL_ERR, "Cannot find room <%s>\n", FNBL_QUEUE_ROOM);
+
CtdlLogP
rintf(CTDL_ERR, "Cannot find room <%s>\n", FNBL_QUEUE_ROOM);
return;
}
CtdlForEachMessage(MSGS_ALL, 0L, NULL,
SPOOLMIME, NULL, process_notify, NULL);
return;
}
CtdlForEachMessage(MSGS_ALL, 0L, NULL,
SPOOLMIME, NULL, process_notify, NULL);
-
lp
rintf(CTDL_DEBUG, "serv_extnotify: queue run completed\n");
+
CtdlLogP
rintf(CTDL_DEBUG, "serv_extnotify: queue run completed\n");
doing_queue = 0;
}
/*!
doing_queue = 0;
}
/*!
@@
-125,7
+125,7
@@
void process_notify(long msgnum, void *usrdata) {
*/
if ((configMsgNum == -1) || (strncasecmp(configMsg, "none", 4) == 0) &&
IsEmptyStr(config.c_pager_program) && IsEmptyStr(config.c_funambol_host)) {
*/
if ((configMsgNum == -1) || (strncasecmp(configMsg, "none", 4) == 0) &&
IsEmptyStr(config.c_pager_program) && IsEmptyStr(config.c_funambol_host)) {
-
lp
rintf(CTDL_DEBUG, "No external notifiers configured on system/user");
+
CtdlLogP
rintf(CTDL_DEBUG, "No external notifiers configured on system/user");
goto nuke;
}
// Can Funambol take the message?
goto nuke;
}
// Can Funambol take the message?
@@
-156,7
+156,7
@@
char *extNotify_getPrefs(long configMsgNum, char *configMsg) {
// Do a simple string search to see if 'funambol' is selected as the
// type. This string would be at the very top of the message contents.
if (configMsgNum == -1) {
// Do a simple string search to see if 'funambol' is selected as the
// type. This string would be at the very top of the message contents.
if (configMsgNum == -1) {
-
lp
rintf(CTDL_ERR, "extNotify_isAllowedByPrefs was passed a non-existant config message id\n");
+
CtdlLogP
rintf(CTDL_ERR, "extNotify_isAllowedByPrefs was passed a non-existant config message id\n");
return "none";
}
struct CtdlMessage *prefMsg;
return "none";
}
struct CtdlMessage *prefMsg;
@@
-194,7
+194,7
@@
long extNotify_getConfigMessage(char *username) {
num_msgs = cdbfr->len / sizeof(long);
cdb_free(cdbfr);
} else {
num_msgs = cdbfr->len / sizeof(long);
cdb_free(cdbfr);
} else {
-
lp
rintf(CTDL_DEBUG, "extNotify_getConfigMessage: No config messages found\n");
+
CtdlLogP
rintf(CTDL_DEBUG, "extNotify_getConfigMessage: No config messages found\n");
return -1; /* No messages at all? No further action. */
}
int a;
return -1; /* No messages at all? No further action. */
}
int a;