diff --git a/lib/util/debug.c b/lib/util/debug.c index 84b197cf607..73e5c5b485c 100644 --- a/lib/util/debug.c +++ b/lib/util/debug.c @@ -767,7 +767,7 @@ void check_log_size( void ) This is called by dbghdr() and format_debug_text(). ************************************************************************/ - int Debug1( const char *format_str, ... ) +static int Debug1( const char *format_str, ... ) { va_list ap; int old_errno = errno; diff --git a/lib/util/debug.h b/lib/util/debug.h index 01ef2a01d63..a560c5e1879 100644 --- a/lib/util/debug.h +++ b/lib/util/debug.h @@ -36,7 +36,6 @@ #define MAX_DEBUG_LEVEL 1000 #endif -int Debug1( const char *, ... ) PRINTF_ATTRIBUTE(1,2); bool dbgtext( const char *, ... ) PRINTF_ATTRIBUTE(1,2); bool dbghdrclass( int level, int cls, const char *location, const char *func); bool dbghdr( int level, const char *location, const char *func);