summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-02-24 16:38:59 +0100
committerDan McGee <dan@archlinux.org>2011-02-24 16:38:59 +0100
commit7c14e48776cf82b521cc8b7dad05892a81b8659b (patch)
treea00eca308169141c7b0266979ffe4c4c303cdb8c /src
parent6735807c0f5ec5464f2977da96b8981e2321940a (diff)
downloadpacman-7c14e48776cf82b521cc8b7dad05892a81b8659b.tar.gz
pacman-7c14e48776cf82b521cc8b7dad05892a81b8659b.tar.xz
Mark log callback format string const
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'src')
-rw-r--r--src/pacman/callback.c2
-rw-r--r--src/pacman/callback.h2
-rw-r--r--src/util/cleanupdelta.c2
-rw-r--r--src/util/testdb.c2
-rw-r--r--src/util/testpkg.c2
5 files changed, 5 insertions, 5 deletions
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 */
diff --git a/src/util/cleanupdelta.c b/src/util/cleanupdelta.c
index 36a4e072..5d2bbf6c 100644
--- a/src/util/cleanupdelta.c
+++ b/src/util/cleanupdelta.c
@@ -37,7 +37,7 @@ static void cleanup(int signum) {
exit(signum);
}
-static void output_cb(pmloglevel_t level, char *fmt, va_list args)
+static void output_cb(pmloglevel_t level, const char *fmt, va_list args)
{
if(strlen(fmt)) {
switch(level) {
diff --git a/src/util/testdb.c b/src/util/testdb.c
index 124a66dd..4e49ce6a 100644
--- a/src/util/testdb.c
+++ b/src/util/testdb.c
@@ -39,7 +39,7 @@ static void cleanup(int signum) {
exit(signum);
}
-static void output_cb(pmloglevel_t level, char *fmt, va_list args)
+static void output_cb(pmloglevel_t level, const char *fmt, va_list args)
{
if(strlen(fmt)) {
switch(level) {
diff --git a/src/util/testpkg.c b/src/util/testpkg.c
index 0dd8db8f..d0d9cac1 100644
--- a/src/util/testpkg.c
+++ b/src/util/testpkg.c
@@ -24,7 +24,7 @@
#define BASENAME "testpkg"
-static void output_cb(pmloglevel_t level, char *fmt, va_list args)
+static void output_cb(pmloglevel_t level, const char *fmt, va_list args)
{
if(fmt[0] == '\0') {
return;