]> xenbits.xensource.com Git - libvirt.git/commitdiff
vsh: Make vshInitDebug static
authorErik Skultety <eskultet@redhat.com>
Fri, 4 Sep 2015 08:42:29 +0000 (10:42 +0200)
committerErik Skultety <eskultet@redhat.com>
Fri, 4 Sep 2015 12:12:34 +0000 (14:12 +0200)
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
tools/vsh.h

index 1aa8f5bc9d095a9b52a18c4c7504d8bc27141596..e57c32466084281e6e1cc6621cb77ddf532a1faa 100644 (file)
@@ -2680,7 +2680,7 @@ vshReadline(vshControl *ctl, const char *prompt)
 /*
  * Initialize debug settings.
  */
-void
+static void
 vshInitDebug(vshControl *ctl)
 {
     const char *debugEnv;
index b6876048cbd9187fd3be01c84337f6324336650b..d4e9710524ad7ffc28fd3ade736557bd594414ea 100644 (file)
@@ -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);