xfree86: os-support: bsd: scope "result" variable in xf86OpenConsole()

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2026-01-13 14:07:54 +01:00
committed by Enrico Weigelt
parent 2cfb92330f
commit fd5cd094d1

View File

@@ -149,7 +149,6 @@ xf86OpenConsole(void)
xf86ConsOpen_t *driver;
#if defined (SYSCONS_SUPPORT) || defined (PCVT_SUPPORT)
int result;
vtmode_t vtmode;
#endif
@@ -227,6 +226,7 @@ xf86OpenConsole(void)
#endif
acquire_vt:
if (!xf86Info.ShareVTs) {
int result;
/*
* now get the VT
*/