From a303a83b92650ca454a44d7e77be9a0eee02b5c5 Mon Sep 17 00:00:00 2001 From: James Golovich Date: Fri, 27 Feb 2004 04:32:54 +0000 Subject: [PATCH] Get rid of compiler warnings when calling ast_queue_log git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2257 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_queue.c | 4 ++-- logger.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/app_queue.c b/apps/app_queue.c index ac6fc3ae52..eee390cbde 100755 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -833,7 +833,7 @@ static int try_calling(struct queue_ent *qe, char *options, char *announceoverri if (res2) { /* Agent must have hung up */ ast_log(LOG_WARNING, "Agent on %s hungup on the customer. They're going to be pissed.\n", peer->name); - ast_queue_log(queuename, qe->chan->uniqueid, peer->name, "AGENTDUMP", ""); + ast_queue_log(queuename, qe->chan->uniqueid, peer->name, "AGENTDUMP", "%s", ""); ast_hangup(peer); return -1; } @@ -844,7 +844,7 @@ static int try_calling(struct queue_ent *qe, char *options, char *announceoverri /* Make sure channels are compatible */ res = ast_channel_make_compatible(qe->chan, peer); if (res < 0) { - ast_queue_log(queuename, qe->chan->uniqueid, peer->name, "SYSCOMPAT", ""); + ast_queue_log(queuename, qe->chan->uniqueid, peer->name, "SYSCOMPAT", "%s", ""); ast_log(LOG_WARNING, "Had to drop call because I couldn't make %s compatible with %s\n", qe->chan->name, peer->name); ast_hangup(peer); return -1; diff --git a/logger.c b/logger.c index 421eaf5e1b..a22f78d5a7 100755 --- a/logger.c +++ b/logger.c @@ -252,9 +252,9 @@ static void queue_log_init(void) qlog = fopen(filename, "a"); ast_mutex_unlock(&qloglock); if (reloaded) - ast_queue_log("NONE", "NONE", "NONE", "CONFIGRELOAD", ""); + ast_queue_log("NONE", "NONE", "NONE", "CONFIGRELOAD", "%s", ""); else - ast_queue_log("NONE", "NONE", "NONE", "QUEUESTART", ""); + ast_queue_log("NONE", "NONE", "NONE", "QUEUESTART", "%s", ""); } int reload_logger(int rotate)