From a3bf71378e5ffea7df8b45a44e7a781803ac4b4a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Thu, 22 Feb 2018 23:07:58 +0100 Subject: [PATCH] basic/log: make log_object_internalv static It makes the code easier to read, because it's obvious that the function cannot be called from elsewhere. --- src/basic/log.c | 3 ++- src/basic/log.h | 13 ------------- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/src/basic/log.c b/src/basic/log.c index 76771397c8..bb60ce5298 100644 --- a/src/basic/log.c +++ b/src/basic/log.c @@ -721,7 +721,8 @@ int log_internal_realm( return r; } -int log_object_internalv( +_printf_(10,0) +static int log_object_internalv( int level, int error, const char *file, diff --git a/src/basic/log.h b/src/basic/log.h index 5b5a25bd6d..efcf0f1bfc 100644 --- a/src/basic/log.h +++ b/src/basic/log.h @@ -144,19 +144,6 @@ int log_object_internal( const char *extra, const char *format, ...) _printf_(10,11); -int log_object_internalv( - int level, - int error, - const char *file, - int line, - const char *func, - const char *object_field, - const char *object, - const char *extra_field, - const char *extra, - const char *format, - va_list ap) _printf_(10,0); - int log_struct_internal( int level, int error, -- 2.25.1