From 6675a07badfb688aacbd8fd12ba55e16854ba0ab Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Sun, 26 Jun 2011 09:47:40 +0200 Subject: Only expose the sflag variable when needed. The sflag variable is only used when using BSD-style utmp. Signed-off-by: Ed Schouten Signed-off-by: Alan Coopersmith --- sessreg.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sessreg.c b/sessreg.c index 899b070..671f257 100644 --- a/sessreg.c +++ b/sessreg.c @@ -105,9 +105,10 @@ static int utmp_none, wtmp_none; * BSD specific variables. To make life much easier for Xstartup/Xreset * maintainers, these arguments are accepted but ignored for sysV */ -static int hflag, sflag, xflag, tflag; +static int hflag, xflag, tflag; static char *host_name = NULL; #if defined(USE_UTMP) && !defined(HAVE_PUTUTLINE) +static int sflag; static int slot_number; #endif static char *xservers_file, *ttys_file; -- cgit v1.2.3