From 682775fbb894d36d6b4d3a90009a16b1650c3981 Mon Sep 17 00:00:00 2001 From: Erik Skultety Date: Fri, 4 Sep 2015 10:42:29 +0200 Subject: [PATCH] vsh: Make vshInitDebug static There's no reason why debug initialization could not be made completely hidden, just like readline initialization is. The point of the global initializer vshInit is to make initialization of smaller features transparent to the user/caller. --- tools/vsh.c | 2 +- tools/vsh.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/vsh.c b/tools/vsh.c index 1aa8f5bc9d..e57c324660 100644 --- a/tools/vsh.c +++ b/tools/vsh.c @@ -2680,7 +2680,7 @@ vshReadline(vshControl *ctl, const char *prompt) /* * Initialize debug settings. */ -void +static void vshInitDebug(vshControl *ctl) { const char *debugEnv; diff --git a/tools/vsh.h b/tools/vsh.h index b6876048cb..d4e9710524 100644 --- a/tools/vsh.h +++ b/tools/vsh.h @@ -305,7 +305,6 @@ void vshPrintExtra(vshControl *ctl, const char *format, ...) bool vshInit(vshControl *ctl, const vshCmdGrp *groups, const vshCmdDef *set); bool vshInitReload(vshControl *ctl); void vshDeinit(vshControl *ctl); -void vshInitDebug(vshControl *ctl); void vshDebug(vshControl *ctl, int level, const char *format, ...) ATTRIBUTE_FMT_PRINTF(3, 4); -- 2.39.5