diff options
author | William Pitcock <nenolod@dereferenced.org> | 2017-04-24 23:53:26 +0000 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2017-04-24 23:53:26 +0000 |
commit | a841d6b259a10240d4beb55046b27caa3f7f6868 (patch) | |
tree | cca48aae24991238281b9d319d56ab1e60e69250 /src | |
parent | 5ba27c90007b2441f1fe35365c753a5365f3a2de (diff) | |
download | apk-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')
-rw-r--r-- | src/print.c | 6 |
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); } |