summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEd Schouten <ed@80386.nl>2011-06-26 09:47:40 +0200
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-06-26 09:30:31 -0700
commit6675a07badfb688aacbd8fd12ba55e16854ba0ab (patch)
treef6273113509df62b1224467580af50433a44667c
parent6b9a2f7bfa823a3dc0befd039ee08ec1596a3c64 (diff)
Only expose the sflag variable when needed.
The sflag variable is only used when using BSD-style utmp. Signed-off-by: Ed Schouten <ed@80386.nl> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--sessreg.c3
1 files changed, 2 insertions, 1 deletions
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;