summaryrefslogtreecommitdiff
path: root/src/print.c
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2017-04-24 23:53:26 +0000
committerWilliam Pitcock <nenolod@dereferenced.org>2017-04-24 23:53:26 +0000
commita841d6b259a10240d4beb55046b27caa3f7f6868 (patch)
treecca48aae24991238281b9d319d56ab1e60e69250 /src/print.c
parent5ba27c90007b2441f1fe35365c753a5365f3a2de (diff)
downloadapk-tools-a841d6b259a10240d4beb55046b27caa3f7f6868.tar.gz
apk-tools-a841d6b259a10240d4beb55046b27caa3f7f6868.tar.bz2
apk-tools-a841d6b259a10240d4beb55046b27caa3f7f6868.tar.xz
apk-tools-a841d6b259a10240d4beb55046b27caa3f7f6868.zip
print: don't shadow log()
Diffstat (limited to 'src/print.c')
-rw-r--r--src/print.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/print.c b/src/print.c
index 6608152..c4e1c2f 100644
--- a/src/print.c
+++ b/src/print.c
@@ -157,7 +157,7 @@ const char *apk_error_str(int error)
}
}
-static void log(FILE *dest, const char *prefix, const char *format, va_list va)
+static void log_internal(FILE *dest, const char *prefix, const char *format, va_list va)
{
if (prefix != NULL)
fprintf(dest, "%s", prefix);
@@ -171,7 +171,7 @@ void apk_log(const char *prefix, const char *format, ...)
{
va_list va;
va_start(va, format);
- log(stdout, prefix, format, va);
+ log_internal(stdout, prefix, format, va);
va_end(va);
}
@@ -179,6 +179,6 @@ void apk_log_err(const char *prefix, const char *format, ...)
{
va_list va;
va_start(va, format);
- log(stderr, prefix, format, va);
+ log_internal(stderr, prefix, format, va);
va_end(va);
}