From 7c14e48776cf82b521cc8b7dad05892a81b8659b Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Thu, 24 Feb 2011 09:38:59 -0600 Subject: Mark log callback format string const Signed-off-by: Dan McGee --- src/pacman/callback.c | 2 +- src/pacman/callback.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/pacman') diff --git a/src/pacman/callback.c b/src/pacman/callback.c index f1e71bb4..a80172b2 100644 --- a/src/pacman/callback.c +++ b/src/pacman/callback.c @@ -669,7 +669,7 @@ void cb_dl_progress(const char *filename, off_t file_xfered, off_t file_total) } /* Callback to handle notifications from the library */ -void cb_log(pmloglevel_t level, char *fmt, va_list args) +void cb_log(pmloglevel_t level, const char *fmt, va_list args) { if(!fmt || strlen(fmt) == 0) { return; diff --git a/src/pacman/callback.h b/src/pacman/callback.h index f5bf1c1d..1109a3b2 100644 --- a/src/pacman/callback.h +++ b/src/pacman/callback.h @@ -41,7 +41,7 @@ void cb_dl_total(off_t total); void cb_dl_progress(const char *filename, off_t file_xfered, off_t file_total); /* callback to handle messages/notifications from pacman library */ -void cb_log(pmloglevel_t level, char *fmt, va_list args); +void cb_log(pmloglevel_t level, const char *fmt, va_list args); #endif /* _PM_CALLBACK_H */ -- cgit v1.2.3-70-g09d2